Provide ONNX external data mechanism to ReadNetwork (#2588)
authorMateusz Bencer <mateusz.bencer@intel.com>
Wed, 14 Oct 2020 09:30:53 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 09:30:53 +0000 (12:30 +0300)
commitc0d71900fd23456f1653a0d55fd27b07198f6a1d
tree953878bac410ca1dd22e368b0b0020a01255fb4c
parent99566395314db0d3618d2d172e68ca1475ad0c07
Provide ONNX external data mechanism to ReadNetwork (#2588)

* added unit test

* added python test

* using pword approach

* Added passing path to onnx reader

* support for wstring

* Added more tests

* Apply suggestions from code review

Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>
* fix build for Windows

* styles applied

* Fixed Windows tests

* styles applied

* fixed styles in tests

* review remarks

* cmake order

* Used target_compile_definitions instead of add_definitions

* Move ONNX_TEST_MODELS to other scope

Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>
18 files changed:
inference-engine/include/ie_core.hpp
inference-engine/src/inference_engine/ie_network_reader.cpp
inference-engine/src/inference_engine/ie_network_reader.hpp
inference-engine/src/readers/onnx_reader/ie_onnx_reader.cpp
inference-engine/tests/functional/inference_engine/CMakeLists.txt
inference-engine/tests/functional/inference_engine/onnx_reader/models/data/tensor.data [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/onnx_reader/models/onnx_external_data.prototxt [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/onnx_reader/models/АБВГДЕЁЖЗИЙ/ひらがな日本語.prototxt [new file with mode: 0644]
inference-engine/tests/functional/inference_engine/onnx_reader/onnx_reader_external_data.cpp [new file with mode: 0644]
ngraph/core/include/ngraph/file_util.hpp
ngraph/core/include/ngraph/ngraph_visibility.hpp
ngraph/core/src/file_util.cpp
ngraph/frontend/onnx_import/include/onnx_import/utils/tensor_external_data.hpp
ngraph/frontend/onnx_import/src/onnx.cpp
ngraph/frontend/onnx_import/src/utils/tensor_external_data.cpp
ngraph/python/tests/test_onnx/models/data/tensor.data [new file with mode: 0644]
ngraph/python/tests/test_onnx/models/external_data.prototxt [new file with mode: 0644]
ngraph/python/tests/test_onnx/test_onnx_external_data.py [new file with mode: 0644]