* Added compatibility check of layout with partial shape
E.g. layout "NC" in not compatible with PartialShape{1,3,224,224}
Check is added:
- For parameter set_layout
- For parameter set_partial_shape
- For result set_layout
- Checked also compatibility for all results after 'validate_and_infer_types'
* Fix incorrect tests
* Fix of more incorrect tests
* Removed couple of obsoleted error-handling tests - these are catched now on earlier stages
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
* [Python API] Rename configuration API + update tests/tools
* keep old api for compatibility
* add deprecation warnings
* apply comments to query sample
* remove convert to pyobject
* use Any instead of string
* update tests
* update set_property
* fix sample
* update test + try-except for pot
* add docstrings
* fix codestyle for pot
* Squash commit: implement Conversion extensions
* Refactor PaddlePaddle FrontEnd
* Codestyle
* FrontEnd,InputModel,Place base classes -> abstract, renamed model file
* Fix unit tests
* fix unit tests
* ngraph:: to ov::
* Rename frontends dir to frontend
* fix merge conflicts
* Fix ConversionExtension
* get rid of NamedInputs/Outputs in TF FE
* Rename paddlepaddle to paddle; pdpd to paddle
* add missing file
* codestyle
* Remove local change
* paddlepaddle -> paddle for azure configs and .md files
* fix package name, fix config files
* Fix win build
* Revert Broadcast/AutoBroadcast changes
* codestyle
* fix FronEnd class
* fix ngraph_cpp_api.config
* fix incorrect merge, codestyle
* fix conversion extension
* conversion extension
* codestyle
* merge master
* fix build
* refactoring; revert broadcast/autobroadcast changes
* codestyle
* fix MacOS config
* resolve merge conflicts
* refactor includes
* register ConversionExtension in FrontEnds
* move get_op_type to base NodeContex class
* set op_translator map in ctor of Paddle FE; fix unit tests
* update unit tests; codestyle
* codestyle
* preliminary version of conversion extension in pybind
* conversion extension
* get_attribute_as_any method for NodeContext
* move get_attribute methods to NodeContext base class, rename get_ng_input to get_input
* add missed file
* Implement ov::Any getter in ONNX NodeContext
* fix py bindings
* Add update ConversionExtension unit tests, add SO unit tests, fix TF FE
* fix segfault on destructor
* fix NodeContext interface, fix unit tests
* set different names for ConversionExtensions in unit tests
* fix PaddleFuzzy tests
* fix Paddle Fuzzy tests
* revert changes in generate_slice.py
* fix codestyle
* fix pybindings
* revert local changes in generate_slice.py
* delete duplicate exceptions.hpp
* Refactoring: fix names according to convention
* pybinding for NodeContext, FrontEnd, ConversionExtension; fix unit tests; implement new unit tests
* Refactoring
* fix the case when a new converter rewrites existed one; delete unnecessary NodeContext from pybindings; use CreatorFunctons from the base class in ConversionExtension; update unit tests
* Revert local change
* PythonAPI: fix get_attribute method; fix get_input method; implement support of dtype and default attributes
* Fix py unit tests: add support for vector<ov::element::Type> as attribute
* resolve review comments
* fix unit tests
* move extension_holder to openvino/frontend/extension folder
* fix build on mac os
* temporary disable cast from vector<bool> to investigate issue on mac os
* Resolve review comments
* Resolve review comments
* Use dev API for .so extension
* Link frontends to pyopenvino as separate targets
* Temporary enable tf fe installation
* ignore PEP8 E402 for init files, set correct directory for py modules
* revert local changes
* Fix deadlock in pybind GIL; fix Win build; fix PEP8
* fix PEP8
* Add a return type annotation
* fix builds; fix ON/OFF switcher for ENABLE_OV_xxx_FRONTEND cmake options
* Fix the issue with ifdefs on WinOS; fix the issue related to pybindings and static c++ object
* fix python unit tests
* fix static build on WinOS
* Retrigger CI builds
* Fix static build on Windows
* fix static build on Windows again
* Retrigger CI
* delete unused includes; add a comment about issue on MacOS
* fix missprint
* resolve review comments
* fix missprint
* resolve review remarks
* Resolve review comments
* win win wheels build
* resolve review comments
* Python bindings - test for telemetry extension
This also ensures that actual 'Telemetry' object containing callbacks is still alive even there is no explicit Python objects holding it
* Fix pylint
* fix clang-format
* Use std::string for static map instead of py::str
Probable reason is that this static map is destroyed after 'pybind' module is destoryed itself, thus py::str can't be cleaned up properly
* Added test via 'subprocess' execution of separate file
* [PYTHON] Add python APIs for loadNetwork and compile_networt without device name
CVS: https://jira.devtools.intel.com/browse/CVS-75249
Change-Id: Ia28e35f4ee66fc8fc5997b5bafe1b159670f9a21
Signed-off-by: River,Li <river.li@intel.com>
* Fix clang issue
Change-Id: I9988b16863af0e3883e99369f124cd05761d3210
* Fixed positional arguments issue
Change-Id: I6c3aa98bb693a619fa54fd6e96cf5eb89cdb9369
* Fixed 2 blank lines issue
Change-Id: I7f2afd7ebb80867a69d0c3ac9a6d4a38d95edb12
* Set AUTO as default device if no device name is set
Change-Id: Ic8646b12af0a2ab2fec6a07f5a12d460dcf781d7
* Resolve comments from code reviewer
Change-Id: Ia47faeb48937096e41e22ac59fbd88ec82cc6733
* [Python API] Rename offline_transformations in the new api
* remove comments
* one more place to rename
* fix mo building
* fix after merge
* fix for pot import
* Calculate model layout based on 'tensor' layout and convert steps
Previously, 'model layout' is set to '...' by default,
thus no shape conversion happened when tensor layout is set to 'NHWC', then there was explicit convert_layout "NCHW"
Now "model layout" is calculated based on tensor layout and conversion steps:
Examples:
1) Tensor: NHWC, Convert: NCHW. Result: NCHW
2) Tensor: NHWC, Convert: 0312. Result: NCHW
* Initial move of tensor data calculation
* Moved 'impls' to new file
* Postprocessing + unit tests
* clang-format fix
* Added more details to preprocessing nodes
- Mean/Scale - will print mean/scale values
- Convert type - will print type
- Convert layout - will print destination layout
- Convert color - will print destination color
It is needed to troubleshoot the problems. If error occurs, message will not display last op's target shape/layout/type
* Add python bindings
* update tests
* Added memory type to dump if set
* Code style fix
* unity build fix
* Dump tensor if only memory type is set
* Added debug print
* Fix Param->Result case
Previously, layout was set by preprocessing set to old parameter as well
This is incorrect because in case of exception layout info will not be reverted
In this case old Result pointed to old Parameter and was able to preserve runtime info
After fixing of this, case Param->Result was broken if revalidation is not triggerred
Fix is to detect 'Result' as a consumer of some parameter and force revalidation in this case
* Revert occasionally committed line
* And one more line
* Squashed commit of previous work
* Fix mock tests
* clang
* Fix rebase errors
* remove unnecessary changes
* One more finding
* Copy ov::Model runtime info as well
* Fix review comments
* Commit missing file
* Copy m_shared_object when cloning model
* removed copy_shared_objects and use clone_model(model, NodeMap) as a friend for ov::Model
* Added OPENVINO_API to forward declaration
* add OPENVINO_API to friend function declaration
* add support for f16 and bf16 for outputs_to_dict
* create test for f16
* add test for infer new request return type
* fix infer return type test
* update Type import
* update asserts in infer_new_request_return_type
* fix import in test_infer_request
* clean test file
* style fix
* Refactor ONNX,IR,Common FrontEnds
* Rename frontends dir to frontend
* Rename frontend_manager, frontend_defs -> manager, defs; move Place, InputModel to src for Paddle FE
* remove exports for ir/input_model
* fix unit tests
* Fix unit tests
* revert ONNX_API/IR_API defines
* move manager.hpp to frontend dir
* delete common folder; rename defs to visibility; fix includes
* revert local changes
* codestyle
* fix build: set correct includes
* fix includes
* fix build; resolve review comments
* fix install paths
* correct installation folder for onnx_import
* use IE_THROW in ir frontend