[nnc] Introduce Compose Transposes optimization (#2972)
authorАндрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 <a.shedko@samsung.com>
Tue, 12 Feb 2019 16:48:50 +0000 (19:48 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Tue, 12 Feb 2019 16:48:50 +0000 (19:48 +0300)
commit8d6459c1ab468a069edc75d6316633bcfb092e30
tree6aff0abee4b44ba742df3a0f7978b908e7047c90
parentf6b67d7034eff76d9f6fa834202396d97f968c28
[nnc] Introduce Compose Transposes optimization (#2972)

This PR Introduces `Combine Transposes` optimization which combines adjacent transposes and eliminates the noop ones.

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
contrib/nnc/passes/optimizations/CombineTransposes.cpp
contrib/nnc/unittests/CMakeLists.txt
contrib/nnc/unittests/optimizations/CMakeLists.txt [new file with mode: 0644]
contrib/nnc/unittests/optimizations/CombineTransposes.cpp [new file with mode: 0644]