[nnc] Perform constant folding at import stage in TensorFlow Lite importer (#3031)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Wed, 13 Feb 2019 19:03:37 +0000 (22:03 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Wed, 13 Feb 2019 19:03:37 +0000 (22:03 +0300)
commit3aed9b9c6c0063f342de26a35a68534f357a5146
tree8de2e39b638a18411d998e8b74f1177b85e4cf8d
parent36c821fc1ef8e7b330fa87d9c031bcef336f3c7c
[nnc] Perform constant folding at import stage in TensorFlow Lite importer (#3031)

* Add constant folding to StridedSlice and Mul converters to support a common pattern Shape->StridedSlice->Mul->ResizeNearestNeighbor.
* Split converters of binary elementwise operations into separate functions.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
contrib/nnc/passes/tflite_frontend/tflite_importer.cpp
contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp
contrib/nnc/passes/tflite_frontend/tflite_op_creator.h