[IE CLDNN] Disabled choose_impl call for generic nodes in some cases to avoid double compilation (#1989)
This commit is contained in:
parent
c9820a9588
commit
aadd461c11
@ -64,6 +64,10 @@ void post_optimize_weights::optimize_weights(T& node, program_impl& p) {
|
||||
// set generic_layer's node output layout and implementation
|
||||
auto& g_node = node.get_dependency(i);
|
||||
g_node.get_output_layout(false);
|
||||
|
||||
// Don't run impl selection to avoid double compilation of reorder kernels
|
||||
// in main program and internal program for constant propagation
|
||||
if (!g_node.is_constant())
|
||||
g_node.selected_impl = g_node.type()->choose_impl(p.get_engine(), g_node);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user