[nnc] Check that the model has the correct format in Caffe importer (#2753)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Thu, 10 Jan 2019 13:38:53 +0000 (16:38 +0300)
committerРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Thu, 10 Jan 2019 13:38:53 +0000 (16:38 +0300)
commitce32750f796762eeebc56b35c7ae6d19ab59e696
tree03a1aa6ffdda429c9a41901a431b2ab76cf34505
parentd213072178ceba23f075139f62b9e436d2e0029d
[nnc] Check that the model has the correct format in Caffe importer (#2753)

Ensure that the model file consumed entirely, otherwise complain that the model cannot be loaded. Fixes #2050.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
contrib/nnc/driver/main.cpp
contrib/nnc/include/passes/common_frontend/proto_helper.h [deleted file]
contrib/nnc/include/support/ProtobufHelper.h [new file with mode: 0644]
contrib/nnc/passes/caffe2_frontend/caffe2_importer.cpp
contrib/nnc/passes/caffe_frontend/caffe_importer.cpp
contrib/nnc/support/CMakeLists.txt
contrib/nnc/support/ProtobufHelper.cpp [new file with mode: 0644]