Skip to content

Commit

Permalink
Skip set_selected_impl() of post_optimize_weight when target generic …
Browse files Browse the repository at this point in the history
…layer is already created (openvinotoolkit#15852)
  • Loading branch information
wilson-seok authored and andrei-cv committed Mar 21, 2023
1 parent d6a3148 commit 4f6aac8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void post_optimize_weights::optimize_weights(T& node, program& p) {

// 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()) {
if ((!g_node.is_constant()) && (!reorder.second)) {
g_node.set_selected_impl(g_node.type()->choose_impl(g_node));
if (auto impl = g_node.get_selected_impl()) {
auto kernel_ids = p.get_kernels_cache().add_kernels_source(impl->get_kernels_source());
Expand Down

0 comments on commit 4f6aac8

Please sign in to comment.