[nnc] Remove Model IR after all passes (#2036)
authorРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Tue, 30 Oct 2018 09:05:33 +0000 (12:05 +0300)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 30 Oct 2018 09:05:33 +0000 (12:05 +0300)
commitfddfc3d8872ff4b86ec15225b043053f24af73d9
treef3f2b977f039734c9d2e08621537930c6ce8fafe
parentbb79c0f7e17eef438c084f818c0d5f7c3c65654f
[nnc] Remove Model IR after all passes (#2036)

* add `cleanup` method in `Pass` class
* remove redundant frontend classes
* free all pass data in `PassManager` destructor
* replace `OpCreator` with CaffeOpCreator/TFLiteOpCreator to avoid violation of ODR
* free resources in unit tests

Signed-off-by: Roman Rusyaev <r.rusyaev@samsung.com>
24 files changed:
contrib/nnc/driver/Driver.cpp
contrib/nnc/examples/caffe_frontend/model_dump.cpp
contrib/nnc/examples/tflite_frontend/sanity_check.cpp
contrib/nnc/include/pass/Pass.h
contrib/nnc/include/pass/PassData.h
contrib/nnc/include/passes/caffe_frontend/CaffeFrontend.h [deleted file]
contrib/nnc/include/passes/caffe_frontend/caffe_importer.h [moved from contrib/nnc/passes/caffe_frontend/caffe_importer.h with 91% similarity]
contrib/nnc/include/passes/caffe_frontend/caffe_op_creator.h [moved from contrib/nnc/passes/caffe_frontend/caffe_op_creator.h with 95% similarity]
contrib/nnc/include/passes/caffe_frontend/caffe_op_types.h [moved from contrib/nnc/passes/caffe_frontend/caffe_op_types.h with 100% similarity]
contrib/nnc/include/passes/tflite_frontend/TfliteFrontend.h [deleted file]
contrib/nnc/include/passes/tflite_frontend/tflite_importer.h [moved from contrib/nnc/passes/tflite_frontend/tflite_importer.h with 91% similarity]
contrib/nnc/include/passes/tflite_frontend/tflite_op_creator.h [moved from contrib/nnc/passes/tflite_frontend/tflite_op_creator.h with 96% similarity]
contrib/nnc/pass/PassManager.cpp
contrib/nnc/passes/caffe_frontend/caffe_frontend.cpp [deleted file]
contrib/nnc/passes/caffe_frontend/caffe_importer.cpp
contrib/nnc/passes/caffe_frontend/caffe_op_creator.cpp
contrib/nnc/passes/tflite_frontend/CMakeLists.txt
contrib/nnc/passes/tflite_frontend/tflite_frontend.cpp [deleted file]
contrib/nnc/passes/tflite_frontend/tflite_importer.cpp
contrib/nnc/passes/tflite_frontend/tflite_op_creator.cpp
contrib/nnc/tests/import/caffe.cpp
contrib/nnc/tests/import/tflite.cpp
contrib/nnc/unittests/caffe_frontend/unsupportedCaffeModel.cpp
contrib/nnc/unittests/tflite_frontend/unsupportedTfliteModel.cpp