Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
fix crash in ReshapeConvertLayout (#2205)
Browse files Browse the repository at this point in the history
* fix crash in ngraph-tf test conv_ops_test.Conv2DTest.testConv2DKernelSmallerThanStrideSame

* fix file perms

* correct checks
  • Loading branch information
gaurides authored and Adam Procter committed Dec 11, 2018
1 parent 1640d21 commit bf14a38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ void ngraph::runtime::cpu::pass::CPUPostLayoutOptimizations::
return false;
}

if (reshape_m->get_op_annotations()->get_in_place_oi_pairs().size() == 0)
auto annotation = reshape_m->get_op_annotations();
if (!annotation || annotation->get_in_place_oi_pairs().size() == 0)
{
NGRAPH_DEBUG << "ReshapeConvertLayout: Reshape is not pass-through";
return false;
Expand Down

0 comments on commit bf14a38

Please sign in to comment.