[IE CLDNN] Fix vector iterators incompatibility issue in prepare_primitive_fusing...
authorJedrzej Hajduczenia <jedrzej.hajduczenia@intel.com>
Wed, 19 Aug 2020 12:51:24 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Aug 2020 12:51:24 +0000 (15:51 +0300)
inference-engine/thirdparty/clDNN/src/graph_optimizer/prepare_primitive_fusing.cpp

index 86bc207..4e235e9 100644 (file)
@@ -698,7 +698,7 @@ void prepare_primitive_fusing::optimize_fused_ops(program_impl& p) {
                                 !quantize_node.get_need_pre_shift();
 
                 if (can_skip) {
-                    fused_prims.erase(curr_itr);
+                    fp_itr = fused_prims.erase(curr_itr);
                 }
             }
         }