[SSR] Transformation mimicking oldSetBatchSize logic (#2597)
authorEvgenya Stepyreva <evgenya.stepyreva@intel.com>
Mon, 26 Oct 2020 17:51:59 +0000 (20:51 +0300)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 17:51:59 +0000 (20:51 +0300)
commit40a4ae3cfa9d31a07aaeed0f1fb5774a63da7d2c
tree16b4697c25810af85689f51f27cf6e93310948a0
parent88847913620f5ea2ed832e55b8d0d4487696a936
[SSR] Transformation mimicking oldSetBatchSize logic (#2597)

* [SSR] Transformation mimicking oldSetBatchSize logic

* Self-review

* gkazanta comments adressed

* support for opset1::Proposal and  opset4::Proposal. Use of pattern predicates

* Constant Folding during setBatchSize

* StridedSlice->Squeeze resolver

* SR tests added

* Squeeze->StridedSlice

* Comments

* getting rid of folding

* comment

* sq->ss transformation

* Revert "sq->ss transformation"

This reverts commit 9731b1cf524c2910bee8d3e97fe3fa46a61dbf1a.

* Revert "comment"

This reverts commit a57b4f863eb1d0e99545184a9c86c93bcee983a5.

* Revert "getting rid of folding"

This reverts commit 85405dab0aa461247f5dd06b05d059ee211cda64.
24 files changed:
inference-engine/src/inference_engine/cnn_network_ngraph_impl.cpp
inference-engine/src/inference_engine/cnn_network_ngraph_impl.hpp
inference-engine/src/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp
inference-engine/src/transformations/include/transformations/smart_reshape/mimic_set_batch_size.hpp [new file with mode: 0644]
inference-engine/src/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp [new file with mode: 0644]
inference-engine/src/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp [new file with mode: 0644]
inference-engine/src/transformations/include/transformations/smart_reshape/reshape_with_hc_output.hpp
inference-engine/src/transformations/include/transformations/smart_reshape/set_batch_size.hpp [new file with mode: 0644]
inference-engine/src/transformations/include/transformations/smart_reshape/smart_reshape.hpp
inference-engine/src/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/smart_reshape/mimic_set_batch_size.cpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/smart_reshape/proposal_scales_stridedslice.cpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/smart_reshape/reshape_to_1D.cpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/smart_reshape/reshape_with_hc_output.cpp
inference-engine/src/transformations/src/transformations/smart_reshape/set_batch_size.cpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/smart_reshape/smart_reshape.cpp
inference-engine/src/transformations/src/transformations/smart_reshape/strided_slice_squeeze.cpp [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/cnn_network/cnn_ngraph_impl_tests.cpp
inference-engine/tests/functional/inference_engine/transformations/sr_mimicking_sbs.cpp [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/transformations/sr_proposal_scales.cpp [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/transformations/sr_reshape_1d.cpp [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/transformations/sr_strided_slice_squeeze.cpp [new file with mode: 0644]
ngraph/core/src/op/group_conv.cpp
ngraph/core/src/op/shape_of.cpp