Commit Graph

12143 Commits

Author SHA1 Message Date
Surya Siddharth Pemmaraju
e2d39fec68 Added openvino/torch folder for simplyfing the import (#19281) 2023-08-22 14:24:16 +04:00
Mustafa Cavus
b35ae397b7 TorchFX bugfix missing core object in get_device() (#19278) 2023-08-22 14:23:19 +04:00
Zhang Yi
d4d13663cc [CPU]Fix MLAS threadpool of MlasExecuteThreaded (#19294) 2023-08-22 12:52:22 +04:00
Zhang Yi
c70419a0a2 [CPU] Use parallel_nt_static for MLAS threading (#19301) 2023-08-22 11:58:13 +04:00
Roman Kazantsev
df2bcf7dbd [TF FE] Use regular Convolution in case dynamic input channels (#19253) (#19303)
* [TF FE] Use regular Convolution in case dynamic input channels

This solution is aligned with the legacy frontend but it has limitation.
This is a temporal solution until the core obtains ShapeOf evaluator.



* Remove unused variable from the test



* Fix unit-test

* Update mo unit-test

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-22 09:28:07 +02:00
Sebastian Golebiewski
4a84e84ece port-19307 (#19311)
Porting: #19307
Updating tutorials: adding table of contents and new notebooks.
2023-08-21 16:54:00 +02:00
Anton Voronov
298c6fb8d5 [CPU] Fixed is_on_constant_path() using in all places (#19256) 2023-08-21 18:41:31 +04:00
Wanglei Shen
48b70dc6a5 fix SDL issue (CID 1518459) (#19288) 2023-08-21 20:24:51 +08:00
Maxim Vafin
ec50afd22b [PT FE] Support non boolean inputs for __or__ and __and__ operations (#19272)
Add test for __or__
2023-08-21 13:13:25 +02:00
Wanglei Shen
cd8bb9fb88 fix SDL issue (CID 1518457) for 2023.1 branch (#19290)
* fix SDL issue (CID 1518457) for 2023.1 branch

* update for comments

* update for comments
2023-08-21 17:43:03 +08:00
Georgy Krivoruchko
8a0b844750 [ONNX] Fixed issue with missing sort when wstring path (#19250) (#19258)
* Fixed issue with missing sort when wstring path

* Fixed CI linux builds
2023-08-19 08:47:10 +04:00
Vitaliy Urusovskij
4afb59d2ab Fix uninit members in default GroupNormalization() (#19244) (#19260) 2023-08-18 14:03:24 +00:00
Alina Kladieva
61bde3b56d [ci/azure] Use 2023/1 ref (#19249) 2023-08-17 16:36:14 +00:00
Vladislav Golubev
3e0f529700 [Snippets] init_ptr_increments: removed useless computations for non incremented ports (#19224) 2023-08-17 11:52:55 +00:00
Mateusz Tabaka
5d8abfe41f ConvertSequenceToTensorIterator - push on-constant-path W, R, B inputs to TI's body (#19237)
For some (e.g. quantized) models, W, R, B inputs to sequence operations
are not direct constants, but a subgraph that can be constfolded later.
In that case, we don't need to have them as inputs to TensorIterator,
they can be pulled into its body instead.

Ticket: CVS-117544
2023-08-17 15:17:14 +04:00
Sergey Lyalin
f0300a36eb Efficient FP32 -> FP16 conversion for convert_precision, save_model, ovc and mo (#18988)
* WIP Postpone fp16 in CompressFloatConstantsImpl

* Apply suggestions from code review

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* WIP: Compression to FP16 in Serialize

* Prepared for efficient fp32 to fp16 conversion

* Update src/core/reference/src/runtime/reference/convert.cpp

* Called real slow reference implementations in the place where the optimized versions are supposed to be implemented

* Code style

* Fixed 0 values in the fast f64 to f16 compression

* Optimized convert_from_f32_to_f16_with_clamp

* Added optimized f32->f16 instance of change_constant_precision

* compression transformation Python test

* use tmp dir, minor corrections

* Update src/bindings/python/tests/test_transformations/test_compression.py

* Update src/bindings/python/tests/test_transformations/test_compression.py

* style fix

* define rt_info for postponed_fp16_compression

* remove redundant class

* fix temp dir for Win in test_compression.py

* update definitions in convert.hpp

* Update implementation in convert.cpp

* Update serialize.cpp

* Update compress_float_constants.cpp

* added macros for ARM/non_x86 in convert.cpp

* fix macros in convert.cpp

* change fixme placement in serialize.cpp

* style_fix

* Update src/core/reference/src/runtime/reference/convert.cpp

* style_fix

* Optimized count_out_of_f16_range

* Code style

* Revert unused

* Update src/core/src/pass/serialize.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Update src/core/reference/src/runtime/reference/convert.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* use optimized convert_from_f32_to_f16_with_clamp for non postponed

* minor corrections

* Update src/common/transformations/src/transformations/common_optimizations/compress_float_constants.cpp

* Update compress_float_constants.cpp

* Switched mo and ovc to save_model instead of serialize to leverage performance improvements in fp32->fp16

* Applied minor code imporvements to address review feedback

* Minor changes in code

* Update tools/ovc/openvino/tools/ovc/main.py

* Apply suggestions from code review

* Fixed failed test in case when both usual xml compression and fp16 compression are applied simultaneously (disabled for now)

* Added description for CompressFloatConstantImpl postponed parameter

* Description of postponed parameter for CompressFloatConstants

* Reverted switching to save_model in mo as the compression can be applied not only via CLI and old code should be kept for Python path (not applicable for ovc)

* Removed remining committed test artefacts and reverted remaining changes in mo

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: dmitrygo <dmitry.gorokhov@intel.com>
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@gmail.com>
2023-08-17 11:08:33 +00:00
Jade Cho
2394732055 [dGPU] Use cldnn concat if data type is fp32. (#19240) 2023-08-17 09:14:26 +00:00
Min, Byungil
1b9de79d0d [GPU] Resolve fp16 overflow of mul (#19173)
+ Fixed black output image by Nan output.
+ Resolved fp16 overflow of gemm primitive before softmax
+ Added fused post ops of clamp activation not to get inf which caused Nan output
+ Added new pass modify_fused_ops

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2023-08-17 18:09:10 +09:00
Andrei Gorbachev
49bbcb4cf6 [ПЗГ] fix coverity (#19204) 2023-08-17 12:46:35 +04:00
Ilya Lavrenov
14abb2de8e Conan: compilation with dynamic flatbuffers (#19238) 2023-08-17 11:36:30 +04:00
Anastasiia Pnevskaia
3ef345095c Set CF=False. (#19223) 2023-08-17 11:22:26 +04:00
Anastasiia Pnevskaia
7a566313e5 Fixed 'output_model' logic in OVC. (#19171)
* Fixed output_model logic.

* Removed not needed code.

* Used os.path.basename, added comments.

* Removed loop.

* Test corrections.
2023-08-17 09:47:18 +04:00
Anastasiia Pnevskaia
3e23908983 Improvements and fixes in OVC convert_model (#19184)
* Added support of tuple in input, removed type syntax from OVC tool.

* Removed type syntax tests.

* Apply suggestions from code review

* Method annotation corrected.

* Type annotation corrected.

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2023-08-17 09:45:30 +04:00
Wilson Seok
b656feee57 [GPU] fix priorbox legacy code in CreateOp() and allow to use max_size is null (#19143) 2023-08-16 17:54:04 +04:00
Zlobin Vladimir
b4f6148e0b benchmark_app: fix grayscale model and image (#19217)
C++ version doesn't have this problem.

Ticket 99702
2023-08-16 13:47:31 +00:00
Surya Siddharth Pemmaraju
a6719ef2be Improvements for 2023.1 release (#19168)
* TorchFX caching bugfix and improvements

* Fixed inconsistent env variable for Backend device

* Identify PyTorch FrontEnd Decoder type

* Added import statement in init files

* Registered ts_openvino as a separate backend

* Added caching fix and removed extraneous code

* Changed the name of ts backend

* Fixed issue with local temporary object

* Removed import statement from init files

* Changed the documentation

* Added get_supported_ops method for decoders

---------

Co-authored-by: Cavus Mustafa <mustafa.cavus@intel.com>
Co-authored-by: ynimmaga <yamini.nimmagadda@intel.com>
2023-08-16 15:13:21 +02:00
Maxim Vafin
daa4f17a0a [PT FE] Revise usage output vs node in frontend (#19215)
* [PT FE] Revise usage output vs node in frontend

* Fix code style
2023-08-16 17:05:25 +04:00
Jacek Pawlak
cce9872fea [docs] VPU licensing (#19222)
* flatbuffers version update

* minor changes

* minor changes
2023-08-16 17:01:32 +04:00
Jan Iwaszkiewicz
baa0ce46b0 [PyOV] Accept Python functions as Extension attrs and properly capture GIL (#18992) 2023-08-16 14:44:48 +02:00
Min, Byungil
ef6c8c1d66 [GPU] Make gemm_tiled_opt support outer axis (#19210) 2023-08-16 16:43:47 +04:00
Anastasiia Pnevskaia
cabb40638a Fix of confusing logs in convert_model(). (#19157)
* Added check that nncf was imported.

* Added check that nncf was imported in MO.

* Added check that nncf was imported in MO.

* Apply suggestions from code review

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>

* Removed not needed import.

* Pylint fix.

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2023-08-16 13:53:22 +04:00
Katarzyna Mitrus
014691de4c Test nms fix (#19156) 2023-08-16 12:32:04 +04:00
Ekaterina Aidova
89956b65e3 [PT FE]: fixes type checking for freezing conditions (#19199) 2023-08-16 10:30:05 +02:00
Przemyslaw Wysocki
71ac5ee301 [PyOV] Raise allowed diff value for torchvision preprocessor test (#19146) 2023-08-16 10:28:03 +02:00
Sebastian Golebiewski
2a8143f548 [DOCS] Add numpy to installation instructions for master (#19127)
* add-numpy

* Apply suggestions from code review

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Apply suggestions from code review

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-08-16 10:20:49 +02:00
Maksim Kutakov
74c237de2e [CPU] Remove skip for the first inPlace base edge (#19185) 2023-08-16 11:49:04 +04:00
Pawel Raasz
5b273aaba6 Round ref implementation select optimal solution (#19021)
* Round ref implementation select optimal solution

* Add rounding guard
- minor corrections after review.
2023-08-16 11:42:55 +04:00
bstankix
5e1bcbdb93 [DOCS] Fix parameter name in design-tabs (#19211) 2023-08-16 07:42:01 +00:00
Haiqi Pan
712586bd16 Add test case for ov_compiled_model_set_property (#17697)
* add set property case

* add set property case

* free key

* fix code style

* add test of get_property() for ov_property_key_auto_batch_timeout

* get_property first

* add device name

* device_name.c_str()

* reset name

* test set_property

* remove comment

* pass local

* get property first

* fix bug

* use device from GetParam

* fix char to string

* use     EXPECT_STREQ(target.c_str(), result);

* fix comment

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-08-16 11:07:26 +04:00
Maksim Kutakov
d13dff06f3 [CPU] Disable gather inPlace for out of range indices (#19159) 2023-08-16 10:32:31 +04:00
Andrew Kwangwoong Park
8a0a4df941 [GPU] Fix unintentional expansion of pad's rank into 2D (#19106)
* [GPU] Fix unintentional expansion of pad's rank into 2D

* Add explicit 1d pad TCs for ov_gpu_unit_tests
2023-08-16 14:29:00 +09:00
Roman Lyamin
188434e969 [GPU] image_2d_weights_winograd_6x3_s1 formats fix (#19205) 2023-08-16 08:59:43 +04:00
Ivan Tikhonov
8509737d0a Fix TransposeSinking for Gather (#19202)
* Fix TS gather

* enable pytest

* revert auto replaced comment
2023-08-15 16:23:01 +00:00
yanlan song
13f8ff4a40 fix rt_info meta parse race condition (#19196)
* fix a possible race condition

Signed-off-by: fishbell <bell.song@intel.com>

* clang

Signed-off-by: fishbell <bell.song@intel.com>

* reimpl

Signed-off-by: fishbell <bell.song@intel.com>

* add cases

Signed-off-by: fishbell <bell.song@intel.com>

* implement test in 2.0

Signed-off-by: fishbell <bell.song@intel.com>

* clean up unchanged files

Signed-off-by: fishbell <bell.song@intel.com>

* add pragma once

Signed-off-by: fishbell <bell.song@intel.com>

---------

Signed-off-by: fishbell <bell.song@intel.com>
2023-08-15 15:33:01 +00:00
Georgy Krivoruchko
18ab677952 [TF FE] Enabled MMAP for SavedModel and MetaGraph (#18471)
* Moved mmap to openvino/util as a shared functionality

* Enabled MMAP for SavedModel and MetaGraph

* Fixed CMake

* Fixed a lost line

* Simplified code for compilers

* Aligned with an actual master

* Enabled mmap by default and added test

* Suppressed warning, added test for MetaGraph, additional messages

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2023-08-15 14:36:08 +00:00
Sergey Shlyapnikov
d13ae31a61 [GPU] Allow to use infinity value as a Pad's fill value (#19201) 2023-08-15 14:31:49 +00:00
Irina Efode
043cd86449 [CONFORMANCE] Fix memory leak in Subgraphs Dumper (#19172)
* [CONFORMANCE] Fix memory leak in Subgraphs Dumper

* Update fused_names.cpp

* Change inheritance of extractors

* Check graph cache

* Enable Op cache
2023-08-15 14:24:17 +01:00
Gorokhov Dmitriy
5ff67fca40 [CPU][ARM] Fixed execution mode behavior (#19192) 2023-08-15 16:46:05 +04:00
Nadezhda Ageeva
45a534d209 Adds constant folding in ConvertInterpolate11ToInterpolate4 transformation (#19195) 2023-08-15 11:39:22 +00:00
Sergey Lyalin
bf607a1238 Remove example_output for ovc and ovc.convert_model (#19079)
* Removed 'example_output' from ovc and ovc.convert_model, used output for this purpose

* Update tools/ovc/openvino/tools/ovc/convert.py

* Update tools/ovc/openvino/tools/ovc/convert_impl.py

* Reverted mo parts not affected by remove of example_output

* fix PDPD convert_model tests

---------

Co-authored-by: Xiuchuan Zhai <xiuchuan.zhai@intel.com>
2023-08-15 15:14:25 +04:00