Commit Graph

9532 Commits

Author SHA1 Message Date
OlehKravchyshyn
4700207af0
[GPU] Feature/intepolate 3 axes onnx 5d (#13796)
added 3-axis interpolation for linear-onnx mode
fixed resample_opt for onnx mode, it didn't work in case of padding
added tests for the new implementation and fix

@OlehKravchyshyn
2023-01-30 22:45:53 -08:00
Vladislav Golubev
d1397b7b48
[LPT] Rank limitations removed (#14785)
* [LPT] LayerTransformation: removed legacy rank checks

* [LPT] Added test cases with 1D and 6D ranks & existing tests corrected
2023-01-31 00:26:59 +00:00
Paul Youngsoo Ahn
0b5603fa98
[GPU] improve primitive impl caching mechanism with new unified key (#14797)
* [GPU] improved impl cache key (#14797)
- Add hash function for primitive and program_node
- Filter task before entering async compilation queue

* [GPU] improved impl cache key (#14797)
- Multiply magic prime number at input value of hash_combine to avoid hash collision

* [GPU] Update codes to follow up review comments (#14797)
- Change func name from pop_front_task to erase_front_task
- Change func name from get_layout_key to get_impl_key
- Remove average_unpooling.hpp because it was alread removed
- Replace std::list to std::deque in compilation_context
- Modify layout::hash() to get hash of shape from partial shape
- Remove calculation code to get hash from static layout in program_node => layout hash is calculated outside of program_node

* [GPU] Update gpu functional test for improved impl key (#14797)

* [GPU] update compilation queue (#14797)

* [GPU] Move type_string hash to primitive (#14797)
- Add hash for num_outputs in program_node

* [GPU] update hash functions for program_node (#14797)
- add hash for number of inputs in program_node
- program node::hash() had separated into void program node::caclulate_hash() and size_t program_node::get_hash()

* [GPU] Fix gpu unit test failures (#14797)
- move the location to calculate all nodes from compile_graph to program ctor

* [GPU] Fix build issue after rebase (#14797)

* [GPU] Update impl if optimized kernel is in impl_cache even if the shape does not change. (#14797)
- Apply improved hash key to mem kernels cache in update_weight
- Add missing hash value for broadcast
- Add simple unit test to check hash value for program_node, primitive and program_inst
2023-01-30 14:35:58 -08:00
Eddy Kim
c2518f1e4a
[GPU] Serialization logic updates for OneDNN 3.0 (#15182)
* [GPU] The draft for integration oneDNN3.0

Initial PR.

1. Support oneDNN3.0 API
2. Use binary_mul post_opt instead of oscale channel-wise mask(2)
3. Disable some post-opt fusing because of no eltwise scale API
    eltw(non_linear)+eltw(linear), eltw+sum+eltw(linear)

Signed-off-by: hyunback <hyunback.kim@intel.com>

* Fix hardwish issue in 3.0

hard coded hardswish parameter(2.7) is changed alpha and beta from user's required input.

Signed-off-by: hyunback <hyunback.kim@intel.com>

* clean up code

Signed-off-by: hyunback <hyunback.kim@intel.com>

* Apply code review comment and fix ci issue

Signed-off-by: hyunback <hyunback.kim@intel.com>

* Remove setting dst scale

- ACC issue
- No perf gain compared binary_mul

Signed-off-by: hyunback <hyunback.kim@intel.com>

* gpu serialization for onednn 3.0

* missed changes

* add onednn engine creator when loading model from cache

* fixed to use mem_dep index

* updated to save zero_point_mask for serialization

* fixed onednn fc serialization logic

* updated the logic to check if onednn is enabled

---------

Signed-off-by: hyunback <hyunback.kim@intel.com>
Co-authored-by: hyunback <hyunback.kim@intel.com>
2023-01-30 09:41:25 -08:00
Sebastian Golebiewski
bb18069f85
create repo file (#15394) 2023-01-30 20:39:46 +04:00
Maxim Vafin
ea0183359f
Allow compatible shapes in FW Node, not only equal (#15363)
* Allow compatible shapes in FW Node, not only equal

* Add tests

* Add test for type
2023-01-30 15:38:35 +01:00
Zlobin Vladimir
a19d50d4d2
benchmark_app: fix FP16 image type (#15393) 2023-01-30 18:31:12 +04:00
WangHuaqiang
85597f866c
Script: avoid file name renaming by wget if broken cmake install file exists (#15384)
* script: avoid renaming if a broken cmake install file exists

* script: add missing tailing backslash
2023-01-30 16:58:39 +04:00
Jack Clarke
42a417577b
Print unknown argument itself instead of pointer address (#15300) 2023-01-30 14:56:37 +04:00
Ilya Lavrenov
c5cc0d4c16
Migrate to official flatbuffers repo (#15389) 2023-01-30 14:53:10 +04:00
Nadezhda Ageeva
82a07845a5
[GPU]: Update device architecture to support other vendors (#15232) 2023-01-30 14:12:09 +04:00
Ruslan Nugmanov
52c2efb5e1
Layer test for unary ops (#15331)
* Adds base class and first test for tflite_layer tests

* adds layer tests for unary ops

* adds functionality to get tensors from ops

* 1. adds functionality to use custom funcs for input generation
2. removed UNIQUE op from testing ops

* adds functionality to use custom dtypes

* Cast operation support

* Enhanced tfl layer tests

* Trigger tfl layer tests in .ci

* Apply suggestions from code review

---------

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
Co-authored-by: missjane <estepyreva@gmail.com>
2023-01-30 10:11:41 +00:00
Mateusz Bencer
e409f708e0
[ONNX FE] Added support of DFT operator (#15280) 2023-01-30 08:46:09 +01:00
Ilya Churaev
76a0abf3cf
Fixed compiled model leftovers (#15385) 2023-01-30 11:28:23 +04:00
Pavel Esir
7b6eefbbf8
[nG] [IE] add support of mixed FP16/FP32 precision ov::Model for mixed inference (#13249)
* add pattern mathing for MVN, Exp->ReduceSum, L2Normalize, Div with eps for mixed precision inference

* added necessary includes

* clang_format_fix_all

* fix warning_as_error for unused variable

* fix warning_as_error for specifying float literals

* enable marking for fp32 IRs as well

* cosmetic improvements in unit-tests

* fix warnings as error

* added unit-tests for compress_float_constants.cpp for out of range values

* Update align_mixed_fp32_fp16_types.cpp

* Apply suggestions from code review

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* some grooming: mainly in imports

* build fix: replaced ngraph:: -> ov::

* collected all markings in a single file

* shortened pass names

* style fix

* made MarkNormalizationOps as a separate pass

* removed redundant comment, fixed description of MarkSugraphsToKeepInMixedPrecision pass

* comments on Up and Down marking in MarkSugraphsToKeepInMixedPrecision

* cleared info messages in compress_float_constants.cpp, removed threshold adjusting from ENV

* moved declarations of MarkNormalizationOps, MarkExpInReduceOpPath, MarkDivWithEps to hide them from outside users

* simplified pattern matching for max_or_add

* moved `reduceop_path` rt_info inside mark_subgraphs_to_keep_in_mixed_precision.cpp

* fix potential bug with Convert

* removed redundant check for Converts in `insert_converts_after_if_needed` as well

* set Convert types more safely

* corrections in opset10 namespaces; some minor corrections

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-01-30 10:04:12 +04:00
Ilya Churaev
635bfd848e
Introduce ov::ICompiledModel interface (#15276)
* Introduce ov::ICompiledModel interface

* Fixed code style

* Fixed mock

* Fixed Inference Functional tests

* Fixed typo

* Fixed supported properties

* Fixed tests

* Changed API

* Added comments

* Fixed python build
2023-01-30 07:39:09 +04:00
WangHuaqiang
c79f4cbb23
Fix dependency install issue for CentOS/RedHat (#15382)
* add the missing tailing backslash

* install dependency tool wget for ubuntu only
2023-01-29 22:23:16 +04:00
Maxim Vafin
0da79e2f7d
Remove opset include from utils.hpp (#15379)
* Remove opset include from utils.hpp

* Fix build
2023-01-28 10:14:29 +01:00
Mateusz Mikolajczyk
ba5ddf2e49
[PT FE]: Add aten::meshgrid + prim::ListUnpack transformation (#15195)
* Add meshgrid listunpack transformation

* Add case when indexing is not specified

* Fix typos

* Fix problem with 1 input execution & missing runtime_info

* Fix issue with meshgrid placed in loop body

* Add tests to precommit

* Apply sugestions from review

* Fix input 0

* Improve indexing attribute read
2023-01-28 10:08:25 +03:00
Leonard Sikorski
949b9623a4
[PT FE] Add aten::__and__ operator with layer test (#15365)
* Layer test for aten::__add__ operator

* Not working version of aten::__and__

* Simplified implementation of ante::__and__ operator

* Fix file format
2023-01-28 10:06:06 +03:00
Ilya Lavrenov
3a1159eb5f
Fixed WASM build for tests (#15376)
* Fixed WASM build for tests

* Update cmake/developer_package/models.cmake
2023-01-28 10:55:44 +04:00
Eddy Kim
3ace063040
[GPU] Adding copy functions for image2d memory (#15330)
* implemented copy functions for image2d

* updated to dump data using copy_to without lock

* calculating _bytes_count for image2d
2023-01-27 16:47:47 -08:00
Irina Efode
e88210c95d
[CONFORMANCE] Improve python test utils (#15329)
* Remove download of vodels + move some methods to utils

* Separate constants

* filelist

* separate conformance utilities

* Update script according new utils

* Fix subgraphdumper crash

* Some small improvements for api conformance

* add warn_message

* One short fix

* fix master
2023-01-27 21:02:02 +01:00
Ilya Lavrenov
290947da84
Added libflatbuffers-dev as a dependency for build (#15371)
* Added libflatbuffers-dev as a dependency for build

* Extra improvements
2023-01-27 20:00:26 +04:00
Irina Efode
b00314923d
[CONFORMANCE] Update documentation after Gtest Parallel replacement (#15347)
* Update docs. It 1

* Short fix
2023-01-27 15:57:24 +00:00
Tatiana Savina
5da1bdd93a
[DOCS] Delete DL WB note (#15225)
* delete DL WB tips

* remove space

* fixed a link
2023-01-27 16:19:14 +01:00
Roman Lyamin
4089ee0899
[GPU] Added WA for currently unsupported scale_shift_opt agnostic kernel (#15341) 2023-01-27 16:47:35 +04:00
Sungeun Kim
9e54ac6518
[GPU] Add black list to avoid fusing crop before experimental_detectron_roi_feature_extractor (#15036)
* Add black list to avoid fusing crop before experimental_detectron_roi_feature_extractor
* propagate crop when crop is cascaded
2023-01-27 18:52:37 +09:00
dependabot[bot]
d18f518582
Bump pytest from 7.2.0 to 7.2.1 in /src/bindings/python (#15351)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.2.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 13:33:18 +04:00
Artemy Skrebkov
673e5ded1e
Add parameter to specify config path for conformance runner (#15326)
* Add parameter to specify config path for conformance runner

* Add error reporting if path is not correct
2023-01-27 09:14:21 +00:00
Anastasia Kuporosova
2cd1a574b7
[PyOV] Add deepcopy for Model (#15273)
* [PyOV] Add deepcopy for Model

* apply comment

* error for copy

* codestyle
2023-01-27 10:09:31 +01:00
dependabot[bot]
0af4578189
Update fastjsonschema requirement from ~=2.15.1 to ~=2.16.2 in /tools/mo (#15292)
* Update fastjsonschema requirement from ~=2.15.1 to ~=2.16.2 in /tools/mo

Updates the requirements on [fastjsonschema](https://github.com/horejsek/python-fastjsonschema) to permit the latest version.
- [Release notes](https://github.com/horejsek/python-fastjsonschema/releases)
- [Changelog](https://github.com/horejsek/python-fastjsonschema/blob/master/CHANGELOG.txt)
- [Commits](https://github.com/horejsek/python-fastjsonschema/compare/v2.15.1...v2.16.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Apply suggestions from code review

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-27 13:04:00 +04:00
Taylor Yeonbok Lee
cd9e772802
[GPU] Optimize realloc for dynamic shape (#15169)
* Optimize realloc for dynamic shape with
- Pre-aligned alloc for bounded dynamic shape
- Reuse internal buffer

* - Fix internal buffer of NMS kernel to be reused
- Fixed bug in nms quick sort

* Additional fix for internal buffer reuse

* Fix legacy dynamic batch to be applied only for 0-th dim dynamic shape with upper bound

* Fix unittest error

* Apply nms fixes of padding -1 to all buffers only when internal buffer is reused

* Not to have separate get_max_tensor, becuase currently there is no needs for that separate API.
Currently max tensor is only needed for memory allocation, and there is no need for minimum tensor size for now

* Fix allocation of internal buffer to be done for each layout
2023-01-27 00:40:31 -08:00
Bartek Szmelczynski
ce4c082cb2
add aten::topk (#15221)
* add aten::topk

* remove commented lines

* remove white space

* move include to invidual ops

* swithc include statements

* fix style

* trim test cases
2023-01-27 09:34:55 +01:00
Oleg Pipikin
73c9a3dcf2
Remove ENABLE_INTEL_CPU (#15134)
* Remove global ENABLE_INTEL_CPU macro ddefinition.Add mlocal definition for some source files where it is used

* Fix1

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-01-27 07:43:16 +00:00
Pawel Raasz
c1b208b2a5
Review ReverseSequence class for shape inference aspects (#15128)
* Review reverse sequence for:
- partial shapes and labels propagation
- template implementation of shape infer
- refactor shape_infer to use it when op created with default ctor

* Remove friend shape_infer from reverse sequence op
2023-01-27 07:44:03 +01:00
Vitaliy Urusovskij
ea48786bc6
Fix "(un)register_plugin(s)" C and Py tests (#15291)
* Fix "(un)register_plugin(s)" tests

* Remove test skips on Debian after tests are fixed
2023-01-27 09:54:43 +04:00
Ilya Churaev
369bce2e07
Remove legacy constant folding from core (#15315) 2023-01-27 09:09:05 +04:00
Kelvin Choi
f1dcf6ec4a
[GPU] Add functional tests with dynamic input for CumSum op (#14942)
* Add STOP_IND by shape_info in case of reverse
2023-01-26 20:27:56 -08:00
Evgenya Stepyreva
0513a79a79
Tensorflow Lite frontend (#14977)
* Infrastructure for tflite

* Removed submodule flatbuffers

* Added flatbuffers submodule. Fixed version to v22.12.06 aka acf39ff

* Move headers back

* Flatbuffers integration

* Small fixes

* Started parsing the Model

* flatbuffer changes

* decoder_flatbuffer changes

* Lite Input Model -- not needed as of now but looks cool

* Rolled back inherritance from ov::frontend::tensorflow::InputModel

* Results are not treated as outputs, but its ok

* Fix missplaced input vs output

* Refactor

* Load model op-by-op. Frontend API finalized

* Debugging still, there are prints here and there. Decoder is not sane

* Convolution with all attributes is translated and quantization is applied for inputs and constatants. TODO: quantize intermediate tensors, separate decoder specific logic?

* Float ssd and posenet models are showing good accuracy

* Need to refactor but work flawlessly

* Telemetry and lightweight model cutting

* Code style and test changes. Extensions supported

* Quantization and style

* Style refinements

* Move onednn back

* New portion of operations enabled

* TFLite FE doesn't inherrit TF FE

* Moved files to another directory

* Rename header op_table.hpp to common_op_table.hpp for all files in src/frontends/tensorflow_common/src/op/

* Removed visability macroses

* CMake changes

* Unit-test execution in .ci

* Update labeler.yml

* Codeowners

* Style check and fix

* Static Build arrangement

* Addressing the comments

* install common headers to previous place

* New approach with public decoder and graph_iterator

* New approach with public decoder and graph_iterator

* Move GraphIterator back

* Comments addressed

* Comments adressed

* Preliminary TF FE README.md changes

* Added target_compile_definitions OPENVINO_STATIC_LIBRARY for static build

* Fixed conflicts and added TF to common places

* Frontends use only openvino::core::dev API

* Merged common tensorflow changes and made code build and work on selective number of models

* Style

* Rollback unnecessary changes from Tensorflow FE

* Rollback unnecessary changes from Tensorflow Common

* Minor refactor

* cmake minor refactoring

* Mixed commit

* Style and merge fix

* Low hanging fruit operations

* Fix windows build

* Refactor quantization parameters representation

* license compliance. approved by OS PDT

* copyrights in generic file

* dependabot

* labeler

* Unit Test to be triggered in CI

* cmake variables naming. corrected copyright years in copyrights/generic file

* library renamed in .ci/ calls

* Copyright year update

* Set openvino-tf-frontend-maintainers as owner of /src/frontends/tensorflow_lite/

* Fixed flatc corss-compilation

* Cleaned flatbuffers header usage

* Nitpicks solved

* Update cmake/templates/OpenVINOConfig.cmake.in

* Compile with flatbuffers headers

* Fixed "which is prefixed in the source directory"

* Fixed typo in flatbuffers cmake

* Removed flatbuffers submodule

* Added fork submodule

* Fixed static build

* Fixed cross-compilatio

* Fixed -Wshadow warning

* Fixed warning on Windows

* Use only headers from flatbuffers library

* Added LTO and fixed compilation errors on Windows

* Fixed warnings in tensorflow_common

* Move ctors implementation to cpp file

* Added information about new frontends to common FEm part

* Temporaryily disable warnings

* Fixed code style using clang-format

* Fixed Windows

* reverted changes in onnx

* Revert changes in onnx_common

* Removed pragma once frm cpp

Co-authored-by: missjane <estepyreva@gmail.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-27 06:27:59 +04:00
hyunback kim
d8d0083744
[GPU] Fix onednn concat, activation fusing functional regression. (#15328)
onednn doesn't support activation fusing.
faceboxes, icv-reid-embeddin, modnet_webcam_portrait_matting fail to run.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2023-01-27 11:00:26 +09:00
Vitaliy Urusovskij
ef8481d008
Apply snake_case to ov::Core API (#15313) 2023-01-27 00:47:04 +00:00
Irina Efode
532df18e00
Fix broken CI (#15345)
* Fix broken CI

* Fix division by zero
2023-01-27 01:07:36 +04:00
Ilya Lavrenov
93255deb41
Fixed G-API preprocessing tests (#15344) 2023-01-27 00:11:30 +04:00
Jan Iwaszkiewicz
37317b130d
[PyOV] Fix UserWarning in setup.py (#15334) 2023-01-26 22:02:17 +03:00
Sebastian Golebiewski
60664358be
architecture (#15338) 2023-01-26 22:58:09 +04:00
Anastasia Kuporosova
b4f069b9f9
[PyOV] Remove obsolete requirements (#15178)
* [PyOV] Remove obsolete requirements

* add cond for onnx

* cond

* cond

* cond
2023-01-26 19:51:48 +01:00
Gorokhov Dmitriy
b7f6e0f76f
[CORE] Fixed VEX/NonVEX performance penalty inside Convert evalute impl (#15336) 2023-01-26 21:45:24 +03:00
Anastasia Kuporosova
dd17aeead3
[PyOV] Update futureWarning in offline_transformations (#15319) 2023-01-26 17:12:21 +01:00
Ekaterina Aidova
3f5d7ad7a0
[PT FE]: support aten::var_mean and aten::remainder (#15193)
* [PT FE]: support aten::var_mean and aten::remainder

* upd headers

* fix gather version
2023-01-26 14:30:42 +00:00