Commit Graph

463 Commits

Author SHA1 Message Date
Luwei Zhou
d464f38788 Enhance dump_check.py tool for bf16 blob support. (#15002)
@luweizhou2016 please make CI green to merge it
2023-02-22 05:05:08 +00:00
Katarzyna Mitrus
94b64fed79 [ShapeInference] DetectionOutput shape inference review (#15645)
* Add setter for attributes

* Add more type_prop tests

* Extend shape infer tests for default ctor

* Remove redundant set_output_size and update shapes init

---------

Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
2023-02-21 14:42:47 +04:00
cecilia peng
86b50044cd [CPU] optimize TensorIterator DynamicBuffer (#15163)
* optimize TensorIterator DynamicBuffer by preallocating a large chunk of intermediate buffer.

code clean.

review update: always copy in transfer as it is not worthy.

review update: update mem_holder_buffer as dnnl::memory instead of shared_ptr of it.

review update: reuse mem_buffer_holder even if the shape changes.

review update: growth factor.

review update: bug fix.

* fix code style

* review update: rewrite the dynamic buffer using the cpu Memory class, instead of dnnl::memory

* Update src/plugins/intel_cpu/src/nodes/tensoriterator.cpp

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>

* Update src/plugins/intel_cpu/src/nodes/tensoriterator.cpp

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>

* review update: minor fix

---------

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>
2023-02-21 09:40:00 +01:00
Xiuchuan Zhai
8153664b52 [CPU] optimize the shape infer for transpose (#15695)
* optimize the shape infer for transpose

* optimize coding style as comment

* optimize coding style as comment

* fix an bug by PR-15614
2023-02-21 09:19:37 +01:00
Haiqi Pan
1b147c3560 remove no-sign (#15817) 2023-02-20 20:34:23 +04:00
Maxim Vafin
cbd56c3ed9 [PT FE] Enable reverse infer (#15802)
* Enable reverse infer in PT FE

* Inherit channes from weight of convolution

* Except 1

* Add tests

* Add shape propagation for concat
2023-02-20 16:07:28 +01:00
Yury Gaydaychuk
7cffe848d6 [Debug tool] Commit slider (#14571) 2023-02-20 10:46:43 +04:00
Xuejun Zhai
91df0a8aa9 [API remove] remove variantImpl & variantwrapper related class/interfaces (#15580)
* [API remove] remove variantImpl & variantwrapper related class/interfaces

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] fix code format issue

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove api] fix python compiler issue caused by deprecated varient

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] fix code format issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

---------

Signed-off-by: xuejun <xuejun.zhai@intel.com>
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2023-02-17 16:31:26 +04:00
Chen Xu
ff75fdadf3 [CPU] Register printing utilities (#15423) 2023-02-17 11:23:09 +04:00
Ilya Lavrenov
672522492e Changed sample's format_reader libraries type from dynamic to static (#15756) 2023-02-17 09:30:19 +04:00
guozhong wang
f48a67acc9 Improve test coverage for auto_executable_network.cpp (#14693)
* add test case for device_bind_buffer

* Correct path to header file properties.hpp

* rename remote blob testcase with multi

* add test case for remote blob and device bind buffer

* add logs for debug

* disable test case RemoteBlobInitializedWithoutGPU

* add property for remote blob test case

* remove debug logs for bind_multi_schedule.cpp

* fix MultiDeviceMultipleGPU_Test fail

* add test case for oversubsciption of infer requests

* get optimal number to create inferRequests

* using macro ENABLE_INTEL_CPU to make sure tests need CPU

* fix the issue that canCreateRemoteTensorThenInferWithAffinity test case fails to run

* remove ov::hint::PerformanceMode::UNDEFINED from MultiDeviceMultipleGPU_Test
2023-02-17 11:45:28 +08:00
guozhong wang
12a706452c improve auto_executable_network line coverage (#14871)
* add test case for get perf_hint from GetMetric

* Increase Mock GetMetric test sleep time

* add mock test case for getMetric

* add new test case OVAutoExecutableNetworkTest

* convert ov::Any to ov::hint::Priority

* resolve conflict of get_metric.hpp

* add macro ENABLE_INTEL_CPU for gpu test case and fix cases not getting instantiated for cpu test

* fix the issue of running Mock GetMetric test cases fail

* add perf_hint test cases to properties_tests.cpp

* Modify the logic of judging whether it is a single device in ctput mode
2023-02-17 11:30:17 +08:00
Wang, Yang
d89615ff9e [AUTO] Enable AUTO compiledModel::get_property supporting its properties only. (#15003)
* Enable AUTO compiledModel::get_property supporting its properties only.

* Update.

* Update.

* Update some releated test cases.

* Update.

* Update related test case.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

---------

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-02-17 11:27:51 +08:00
Wang Wangwang
d7f47aa122 Provide ENABLE_STARTUP_FALLBACK property to enable/disable CPU as acc… (#14503)
* Provide ENABLE_STARTUP_FALLBACK property to enable/disable CPU as acceleration

* Add more test cases to ENABLE_STARTUP_FALLBACK property

* Remove unnecessary config

* Remove plugin.hpp

* Update test case by PR#14754

* Update copyright

Co-authored-by: River Li <river.li@intel.com>

* Simplify using namespace

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: River Li <river.li@intel.com>
2023-02-17 11:15:07 +08:00
Maksim Kutakov
3e32a9f2af [CPU] Use static post ops in the FC node (#15104)
* Use static post ops in the FC node

* Minor fixes
2023-02-16 14:24:58 +01:00
Pawel Raasz
d32da828b4 Review scatter nd update class for shape inference aspects (#15610)
* Review interval shape and labels propagation

* Review shape infer template implementation
- add test for default ctor

* Add evaluate upper, lower and label
- add new default label evaluator which propagates labels
from inputs list

* default_label_evaluator for 0 input only is wrapper for
generic evaluator implementation

* Use default_label_evaluator in ScatterUpdate

* Fix build issues
2023-02-16 13:49:19 +01:00
Maciej Smyk
70cb829992 [DOCS] Move of developer documentation from wiki to md documents - master (#15372)
* CPU Plugin README creation

* debug capabilities

* Update debug_capabilities.md

* performance_analysis_ITT_counters

* cpu-emulation

* runtime_parameters_cache

* Update README.md

* internal_cpu_plugin_optimization

* See Also update for CPU Plugin

* See Also update for CPU Plugin 2

* intel_gpu

* Update README.md

* source code structure & See Also update for CPU plugin

* Update README.md

* See also update

* basic_data_structure

* memory_allocation_gpu_plugin

* Update memory_allocation_gpu_plugin.md

* simplified workflow

* graph optimization passes

* execution_of_inference

* GPU Plugin

* GPU Plugin fix

* Snippets

* Update README.md

* Update README.md

* fixes

* Snippets fix

* Update README.md

* component description

* Key Contacts

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/plugins/intel_gpu/README.md

* Update src/plugins/intel_cpu/docs/internal_cpu_plugin_optimization.md

* Update src/plugins/intel_cpu/docs/internal_cpu_plugin_optimization.md

* Update src/plugins/intel_cpu/docs/internal_cpu_plugin_optimization.md

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Text graphs to mermaid

* Update src/plugins/intel_gpu/docs/simplified_workflow.md

* Delete ov_intel_gpu_plugin_diagram.png

Removal of ov_intel_gpu_plugin_diagram.png file as the mermaid version is replacing it.

* Apply suggestions from code review

* Update src/common/snippets/README.md

---------

Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2023-02-16 11:03:11 +04:00
Vladislav Golubev
fb3d785c06 [Snippets] [CPU] FMA Fusion (#8066) 2023-02-15 12:58:37 +04:00
Alexandra Sidorova
d73ee9e59b [CPU] Optimize number of pass::Validate calls in postLPT, postSnipppets and CPUSpecificOpSet pass managers (#15596) 2023-02-15 09:08:12 +01:00
Xiuchuan Zhai
36cb32a8f5 [CPU] Optimize shape_infer time of matmul (#15601)
* optimize shape infer of matmul

* remove some redundant check

* fix some comments

* fix some comments

* Update src/plugins/intel_cpu/src/nodes/matmul.cpp

fix an implicit bug

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>

* Update src/plugins/intel_cpu/src/nodes/matmul.cpp

optimize by using OV RTTI instead of dynamic_pointer_cast

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>

---------

Co-authored-by: Maksim Kutakov <maxim.kutakov@gmail.com>
2023-02-15 03:07:39 +01:00
Zhang Yi
e4551b66c4 remove unused value (#15670) 2023-02-13 16:36:13 +04:00
Tingqian Li
b9a1b45a82 [CPU] Optimize reorder inside tensor_iterator (#14689) 2023-02-13 11:26:40 +01:00
Zhang Yi
166566a777 [CPU]Enable pad with runtime begin/end/value (#15146) 2023-02-13 11:01:16 +04:00
Vladislav Golubev
67396661a9 [CPU][DEBUG_CAPS] Transformations dump: added CPU opset serialization for XmlBin format (#15565) 2023-02-10 14:01:09 +01:00
Pawel Raasz
264cb18619 Review pad class for shape inference aspects (#15524)
* Review for partial shape and label propagation

* Review template shape_infer for Pad

* Add evaluate upper/lower, label
- preserve partial value on inputs pads_begin, pads_end

* Fix compilation errors

* Fix pads_begin, pads_end compare

* Minor shape infer assertion corrections

---------

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2023-02-10 13:35:47 +01:00
Vladislav Golubev
1b29914c07 [CPU][DEBUG CAPS] Build fix (#15602)
* [CPU] TransformationPipeline: returned debug config

* Added a macros for variables which can be unused
2023-02-09 22:49:30 +04:00
Katarzyna Mitrus
76817f56c2 [ShapeInference] CTCGreedyDecoderSeqLen shape infer improvements (#15501)
* Shape infer improvements

* Add setter for merge repeated attribute

* Use new shape_infer in validate and infer types

* Add more type prop tests

* Add shape infer tests

* Align variable names in tests

* shape_infer call refactor

---------

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2023-02-08 12:24:48 +00:00
Pawel Raasz
c3083589bd Review reverse class for shape inference aspects (#15426)
* Check partial shape and label propagation

* Add template shape_infer implementation
2023-02-08 16:10:51 +04:00
Ilya Lavrenov
1f3e469c5e Added -Wall for Clang and GCC (#15513)
* Added -Wall for Clang and GCC

* Fixes

* Don't use /J

* Fixed warnings

* Fixed warnings

* More fixes

* Fixed for MSVC

* Fixed more warnings on Windows

* Suppressed some warnings in template plugin

* Update src/tests/functional/plugin/shared/include/behavior/plugin/caching_tests.hpp

* Added suppression for PT FE

* Suppressed warnings in TF FE

* Suppressed warnings on Core unit tests

* Suppress warnings in python

* Suppressed Windows warning for 3rd party modules

* Suppresed one more warning
2023-02-08 15:01:00 +04:00
Katarzyna Mitrus
d94dae79d8 [ShapeInference] CTCGreedyDecoder shape infer improvements (#15474)
* Add setter for ctc_merge_repeated

* shape infer improvements

* Add type prop tests

* Add cpu shape infer tests

* Tests refactor
2023-02-08 11:41:14 +04:00
Ilya Churaev
26108b1b67 Deprecate clone_model API, use model->clone() instead of (#15482)
* Deprecate clone_model API, use model->clone() instead of

* Renamed clone_nodes function

* Fixed exception
2023-02-07 23:53:17 +04:00
Nikolay Shchegolev
188dda668f [CPU] Fix sporadic SIGFAULT in GridSample. (#15009) 2023-02-07 17:57:34 +04:00
Mang Guo
9e83b081f4 Add gather lpt transformation (#14597)
* Add gather lpt transformation

* Add per-channel gather lpt dequantization support

* Fix review comments

* Add GPU test case

* Fix clang-format error gpu case  build error

* Fix comments

* Fix clang-format check fail

* Update docs

* Fix comments

* Add Gather opset1 quantization support
2023-02-02 16:13:52 +01:00
Nikolay Shchegolev
d167f4c733 [CPU] MEMC loading failed RuntimeError: There should be only one inst… (#15380)
* [CPU] MEMC loading failed RuntimeError: There should be only one instance of RegistersPool per thread.

* Fixes as per comments.
2023-02-02 16:10:21 +04:00
Chenhu Wang
8fc4c2c6e1 [CPU]FC shape infer with an CPU shapeInfer object (#15092)
* with an shapeInfer object

* more efficient vector creation
2023-02-01 15:35:15 +01:00
Katarzyna Mitrus
407590cfc2 [ShapeInference] GatherTree shape infer improvements (#15399)
* Shape infer improvments

* Add type_prop label and interval dims tests

* Update shape_infer tests

* Use new shape_infer

* Revert headers changes

* Rename test file
2023-01-31 14:04:19 +01:00
Katarzyna Mitrus
f342e5d208 [ShapeInference] Improve GatherND shape inference (#15378)
* Add shape_infer function for GatherND

* GatherND shape infer improvements

* Align test to trigger correct error message

* Add new and improve GatherND type_prop tests

* Update tests to use ov namespace

* Add GatherND common shape_infer tests

* Init shape infer tests for not common cases

* Tests refactor

* Add default ctor tests

* Add more test cases

* Register shape_infer for GatherND V5 and V8

* Enable more tests and print params

* Move GatherNDTestParams
2023-01-31 14:12:12 +04:00
Pawel Raasz
4ce3e9a88d Review CTCLoss class for shape inference aspects (#15375)
* Review ctc loss operator for
- partial shape and label propagation
- template implementation of shape_infer
- update/extend tests

* Use namespace ov in ctc loss operator
2023-01-31 14:10:30 +04:00
Pawel Raasz
3a8646215f Review roll class for shape inference aspects (#15295)
* Review Roll label and interval shape propagation

* Review Roll shape_infer template implementation

* Fix compilation issues
2023-01-31 14:05:23 +04: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
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
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
Pawel Raasz
a7fa66c52d Review eye class for shape inference aspects (#15039)
* Review propagate interval shapes and labels

* Review eye template shape inference

* Add partial value and label propagation on inputs
columns and rows

* Include array in eye shape inference

* Fix compilation issues

* Remove local label_t alias from eye tests
2023-01-26 15:03:35 +01:00
Pawel Raasz
b44b4fcf2c Refactor shape inference factory (#15004)
* New static shape inference iface using ov::Tensors
- Add new shape inference factory
- Add helpers to create inference factory map entries
- Create map for IShapeInferCommon instead of if else switch
- Create new map for IStaticShapeInfer

* Re-factor tile shape inference to use new iface

* ov::default_label_evaluator uses ov::Tensor now

* Improve cmp::lt for mixed types unsigned and float

* Fix cpp lint issue

* Update using tile shape_inference in GPU plugin

* Do tile shape infer before repeats lock deletion

* Fix label type conversion to element type

* Rename shape infer transformation
to type utils and change namespace from ov::sh_infer_tr to ov::util

* Update shape inference utilities

* Add unit test for safe compare of values

* Update shape infer factory to be a template
and use unordered map

* Remove from_label_type as lebel_t can be used
by element:from<>
2023-01-26 07:44:13 +01:00
Ilya Lavrenov
0970bc8fcf Moved legacy library and deprecated tests to GNA (#15244) 2023-01-25 11:36:22 +04:00
Tomasz Jankowski
988847f559 Transformation component transition to OV namespace (phase 4) (#13558)
* Use openvino pass graph_rewrite

* Replace use of ngraph::pass to ov::pass

* Remove ngraph::pass aliases

* Update after rebase

* Fix post merge conflicts

* Apply code style

* Apply code style

* Remove bypassing inclusion

* Apply code style
2023-01-25 01:02:35 +03:00
Katarzyna Mitrus
c72c6ba331 [ShapeInference] Improvements of GatherElements shape inference (#15264)
* GatherElements shape infer improvements

* Add new tests

* Update test error message
2023-01-24 10:20:28 +01:00
Pawel Raasz
9ee80d67b7 Review topk for shape inference aspects (#14890)
* Review TopK for:
- label and dimension propagation
- partial value and label propagation
- preserve partial value and labels
- add evaluate upper, lower and label

* TopK v1 use shape infer instead fallback
- update static shape inference tests

* TopK shape_infer return output shapes

* Add new way to get tensor data as shape
with custom data processing
- Update tail op to use new function
- Update topk op to use this function
- Add test for negative k

* Add missing include

* Fix compilation issues

* Add support for i4 and u4 element types in
get_raw_data_as

* Fix signed and unsigned and compile warnings

* Remove constexpr from InTypeRange::operator()

* Use forward reference for functor
- minor corrections in InTypeRange class

* Use shape)infer in evaluate
- fix TopK v3 ctor for input data validation

* Fix transformation tests to use correct type for k

* Fix f16 handling in get_raw_data_as

* Correct topk bounds evaluators

* Topk detect overlap for same size dimensions
As op specification not guarantee correct order of
several elements same value

* Remove evaluate bounds
required investigation if required then will be provided

* Remove bound evaluation leftovers

* Update get const data in slice ops
2023-01-24 12:38:08 +04:00
Yuan Hu
ea776672ba [CPU] Allow external blob to be reallocated (#12029) 2023-01-24 09:30:07 +04:00