Commit Graph

12131 Commits

Author SHA1 Message Date
Ilya Lavrenov
75b48e9cdc
Added OpenCV minimal versions (#19231) 2023-08-17 16:45:01 +04: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
Georgy Krivoruchko
66345ed9fc
Removed randomization on frontend size for RandomNormal (#19114) 2023-08-15 11:22:20 +04:00
Eddy Kim
0194cdce3b
[GPU] updated to add reorder after parameter when it is connected to quantize (#19182)
* updated to add reorder after parameter when it is connected to quantize

* removed redundant code
2023-08-14 23:29:49 -07:00
Egor Duplenskii
37a6848f26
[CPU][ARM][FP16] Prefer Convert over Reorder for conversion (#19148) 2023-08-15 09:11:50 +04:00
Roman Lyamin
9be28328bf
Added giy_xs_os_xsv2_osv8__ao32 format to to_weights_layout map (#19181) 2023-08-15 08:49:50 +04:00
dependabot[bot]
c7eb9fe7c7
Update tensorflow requirement in /src/bindings/python (#19169)
Updates the requirements on [tensorflow](https://github.com/tensorflow/tensorflow) to permit the latest version.
- [Release notes](https://github.com/tensorflow/tensorflow/releases)
- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)
- [Commits](https://github.com/tensorflow/tensorflow/compare/v1.15.5...v2.13.0)

---
updated-dependencies:
- dependency-name: tensorflow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 01:15:39 +04:00
Anastasiia Pnevskaia
8ef0acfb95
Updated OMZ. (#19187) 2023-08-15 01:12:14 +04:00
Paul Youngsoo Ahn
e2db808495
[GPU] Fix multiple output issue in get_output_layout(#19186) (#19186) 2023-08-14 20:49:21 +00:00
Irina Efode
a0d1b91a78
[CONFORMANCE] Readability in model_utils (#19175) 2023-08-14 23:15:20 +04:00
Aleksandr Voron
e48b2dfc34
[CPU][ARM] Set FP16 inference precision by default for non-convolution networks on ARM (#19069) 2023-08-14 22:22:39 +04:00
Maxim Vafin
e49b2c05f1
[PT FE] Fix behavior of convert_partially method to align with new description (#19147)
* [PT FE] Fix behaivior of convert_partially method to align with new description

* Simplify

* Do not add a message to exception of get_converted_model

* Update src/frontends/pytorch/src/frontend.cpp

* Supress normalize exception only when model is valid

* Create TranslateSession in own scope
2023-08-14 16:56:06 +00:00
Mateusz Mikolajczyk
f1d61f72ac
[PT FE] Add aten::tensor_split transformation (#19144)
* Add aten::tensor_split

* Fix formating

* Reduce number of test cases

* fix requested changes
2023-08-14 18:31:38 +02:00
Egor Duplenskii
680333b2db
[CPU][ARM] Enable FP16 precision for CumSum node (#19176) 2023-08-14 15:22:43 +00:00