Reshape-Permute-Reshape pattern to DepthToSpace layer transformation (#601)
authorIvan Tikhonov <ivan.tikhonov@intel.com>
Mon, 1 Jun 2020 06:24:16 +0000 (09:24 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 06:24:16 +0000 (09:24 +0300)
commitcd01ccd4499a97d3a109dfea77518fcb4089cd37
treeafc0e3125eebe980d8656f15686633430056d7c3
parentb4893945c7465f4a7d5352a046b6ee9c835796c5
Reshape-Permute-Reshape pattern to DepthToSpace layer transformation (#601)

* implemented depth_to_space transformation

* renaming

* added functional tests, fixed mistakes in implementation of the transformation

* disable ConvertSpaceToDepth/ConvertDepthToSpace transformation for CPU plugin, enable DepthToSpaceFusion for CPU plugin only, add specific creators

* fix wrong include

* fix for functional tests: set transformation callback

* revert callback calls for CPU plugin

* move functions to .cpp file

* Apply review comments

* Apply additional review comments

* fix cast to bool type
inference-engine/src/legacy_api/src/convert_function_to_cnn_network.cpp
inference-engine/src/transformations/include/transformations/common_optimizations/common_optimizations_tbl.hpp
inference-engine/src/transformations/include/transformations/convert_depth_to_space.hpp
inference-engine/src/transformations/include/transformations/convert_opset3_to_opset2/convert_opset3_to_opset2_tbl.hpp
inference-engine/src/transformations/include/transformations/convert_space_to_depth.hpp
inference-engine/src/transformations/include/transformations/depth_to_space_fusion.hpp [new file with mode: 0644]
inference-engine/src/transformations/src/transformations/common_optimizations/common_optimizations.cpp
inference-engine/src/transformations/src/transformations/convert_depth_to_space.cpp
inference-engine/src/transformations/src/transformations/convert_space_to_depth.cpp
inference-engine/src/transformations/src/transformations/depth_to_space_fusion.cpp [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/transformations/depth_to_space_fusion_test.cpp [new file with mode: 0644]