Commit Graph

439 Commits

Author SHA1 Message Date
Edward Shogulin 43f18da413
[LPT] Legacy compliance restrictions removal all: Reshape (#6870)
* [LPT] Reshape: legacy compliance restrictions removal

* [LPT] comment fixes
2021-08-06 10:27:34 +03:00
Yuan Hu a913950039
revise tan op (#6567)
* revise tan op

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* update doc

add examples in desciption
add the unit of measure
clear input type

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* add template plugin test case for int type

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* add template plugin test case for uint and float

remove the float test in backend

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* modify document

change type to any supported numeric type

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* fix compile error in openvino-lin

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2021-08-05 07:48:58 +03:00
Mateusz Tabaka 8c4cee1b58
[GPU] Handle negative axis in concat op (#6839)
* [clDNN] Handle negative axis in concat op

That enables following models for onnx importer path:
yolact-resnet50-fpn-pytorch
yolact-resnet101-fpn-pytorch
yolact-darknet53-fpn-pytorch
swin-tiny-patch4-window7-224
action-recognition-mkinetics-res34-mhsa
driver-action-recognition-adas-0002-decoder
horizontal-text-detection-0001

* Add tests for negative axis in Concat op
2021-08-04 10:44:22 +03:00
Szymon Durawa bba7155fb7
CVS-60706 add cosh to int test. (#6718) 2021-08-03 08:43:04 +03:00
Ilya Churaev e89ffa7718
Added nGraph as a public dependency (#6071)
* Added nGraph as a public dependency

* Fixed Windows warning

* Fixed CMake

* Fixed constant op

* Fixed typo

* Fixed comments

* Revert ngraph libraries

* Fixed build

* Fixed IE::ngraph

* Fixed git merge
2021-08-02 18:48:16 +03:00
Maksim Kutakov 35696ca1db
[CPU] Unified memory descriptor (#6328) 2021-08-02 09:19:15 +03:00
Ilya Lavrenov c38f08b777
Use protobuf-lite for ONNX FE by default (#6829) 2021-07-31 17:21:35 +03:00
Luo Cheng 86bb056dbf
MulticlassNms/MatrixNms: transformations and CPU implementation (#6653)
* init version, need revise: opset7

* add convert testcase

* multiclass_nms support spec

* init version

* matrixnms support spec

* init support for matrix_nms

* impl matirx_nms

* implemented multiclass_nms reference.

TODO: more test cases.

* support dynamic shape in test

* update to spec 0611

* update to spec 0611

* fixes.

* fix: now sort by class_id and score work.

* fix clang check error

* more test cases verified.

* fixes in ref impl.

* attribute nms_eta works

* test cross_batch and output_type i32.

* enable multiclass-nms cpu plugin fallback ngraph

* keep topk typo

* enable matrix-nms cpu plugin fallback ngraph

* support sort_result_across_batch

* Add matrix_nms unit test

* Add cross batch test cases

* fix typo

* move multiclass to opset8

* move matrixnms to opset8

* Reference implementations for MulticlassNms and MatrixNms ops

* fix name conflict

* remove unused var
sort_result_across_batch default set to false

* avoid float overflow

* fix clang check error

* info for mac fail

* change testcase due to unstable sort

* nms add 'normalized' attribute

* multiclass cpu test support 'normalized'

* nms add 'normalized' attribute

* fixes: 1. normalized support. 2. sort by score before keep_top_k inside a batch.

* fixes: 1. normalized support. 2. sort by score before keep_top_k inside a batch.

* fix sort order in matrix_nms

* fix review comments

* add matrix_nms MKLDNN extension layer

* parallel in matirx nms

* separate filtered_box

* separate class_nms result

* parallel in class

* parallel in batch

* partial new nms

* partial remove useless function

* debug & fix

* debug in indexing

* fix test cases

* remove logging

* fix code-style

* fix typo

* add matrix_nms extension

* nms python api

* remove unused testcases

* refactor transformation

* transform dynamic shape to static shape

* Update inference-engine/src/transformations/include/ngraph_ops/nms_static_shape_ie.hpp

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

* remove register_pass call

* [MKLDNN]migrate matrix_nms to MKLDNNNode

* bug fix in matrix_nms

* padding on matrix_nms

* remove logging

* test case refine

* merged transform_matrix_nms branch

* refine matrixnms testcase

* multiclass nms cpu plugin implement for static shape, rebased on Reference implementations PR

* rebase to new multi-classs transform provided by lc

* Name style algin with matrix-nms

* static shape padding style to batch inside,new unit test method, real classnum shape

* fix format

* fix ci error

* multi-class NMS modification based on PR reviewer opinion: code format, copyright, delete unused include and funciton way

* explicit template instantiation due to mac ci fail

* Yi3/fix review (#16)

* fix coding style

* use parallel_for2d

* fix ci fail

* unify 'copyright 2021'

* mkldnn_multiclass_nms node update based on PR review (#17)

* [MKLDNN] apply suggestion for matrix_nms (#18)

* fix bug

* apply review comments

* apply review comments

* apply review comments

* apply review comments

* skip only Nms test, not MatrixNms MulticlassNms test

Co-authored-by: Zhang Yi3 <yi3.zhang@intel.com>
Co-authored-by: jialipen <cecilia.peng@intel.com>
Co-authored-by: mangguo <mang.guo@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: liubo-intel <bo4.liu@intel.com>
2021-07-30 15:45:44 +03:00
Maxim Andronov 2b871eb582
[CPU] prohibit fusing if dropped node contain > 1 child edges (#6705) 2021-07-30 11:47:47 +03:00
Yury Gaydaychuk 7ab92b5845
[CPU] Adaptive pooling implementation (#6594) 2021-07-29 20:41:24 +03:00
Egor Shulman ab8d046642
[CPU] NormalizeL2 - unsorted axes are not supported (#6602) 2021-07-29 17:30:38 +03:00
Patryk Elszkowski 0f6e4afa71
update FakeQuantizeLayerTest - add broadcast (#6813) 2021-07-29 07:46:19 +03:00
Alexandra Sidorova 1aa58b4c7d
[CPU] Enabled MatMul+Transpose transformations and reduced MatMul inference overheads (#6570) 2021-07-28 16:11:41 +03:00
Yury Gaydaychuk 1f24cc9cea
[CPU] nms disabled (#6822) 2021-07-27 21:16:13 +03:00
Yury Gaydaychuk e5a990e356
[CPU] RoiPooling handles border proposals correctly (#6199) 2021-07-26 23:35:27 +03:00
Yunji Kim f5666fb3e1
[GPU] Add new operation GatherElements to IE clDNN plugin (#6676) 2021-07-26 17:52:27 +03:00
LuweiZhou 0c10950032
Revise erf OP (#6477)
* Revise Erf OP sepc

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Revise the NGraph Erf OP implment to switch to RTTI.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Remove the duplicated Erf in the activation type vector.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add NGraph visitor API test case.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Enalbe the Erf visitor API CmakeLists.txt.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Revise the Erf OP backend test

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Migrate to use the template test.

* Add erf type_prop test.

* Update the license

* Unary Visitor test template fix

-Migrate OP Tanh to use RTTI;
-Remove the using namespace in the header file
-Migrate the Swish and Tanh visitor test to use template code


Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Revert "Unary Visitor test template fix"

This reverts commit b686c933d3.

* Update the doc format.

* Update the document format and description.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add Erf OP into the layer test summary list

* Migrate the Erf backend test into template_plugin infrastructure

* Update the Erf supported input type.

* Remove the boolean type support in erf reference implement.

validate_and_infer_elementwise_arithmetic() will fail with boolean type.

* Update the erf test  with all supported types.

* Update with separate namespace of CommonReferenceTest
2021-07-26 07:15:40 +03:00
Szymon Durawa fa057627ec
Ref implementation mvn revise (#6600)
* Add visitor and backend tests.

* Add reduction_axes to SLTs, serialization and backend tests.

* Update backend tests.

* Move backend tests to template plugin, remove old ones.

* Apply correct format.

* Add BF16 to SLT, add comment regarding deprecated class.

* Remove BF16 precision as it is not supported in windows, no default values for attributes.

* Reuse Tensor from base_reference_test.hpp
2021-07-23 07:47:08 +03:00
Edward Shogulin fefe7f4176
[LPT] FakeQuantize folding extending (#6708)
* [LPT] ConvolutionBackpropData fix FQ weights folding

* [LPT] Fixed test to reproduce the bug

* [LPT] fold FakeQuantize

* [LPT] Function tests refactoring

* refactoring

* [LPT] functional test quick fix

* [LPT] dynamic shapes support

Co-authored-by: Zinoviev, Vladimir <vladimir.zinoviev@intel.com>
2021-07-22 23:17:23 +03:00
Paul Youngsoo Ahn fd3e4a3d45
[GPU] Enable loop5 (#6427) 2021-07-22 16:48:45 +03:00
Patryk Elszkowski 35fb3f3d7d
Acosh ref impl (#6664)
* minor changes in Op class and add ref impl for acosh

* acosh in new test framework

* add Acosh type test

* add SLT for Acosh

* run more test

* new acosh plugin test

* add visitor test

* fix test utils

* add template test for all supported types in Acosh

* add builder to template tests

* update grn template_plugin test

* update maste to feature branch
2021-07-22 12:59:59 +03:00
Ivan Tikhonov 9f7cf581b8
DeformableConv: Decrease input_shape and kernal in CPU functional tests (#6746) 2021-07-22 01:37:22 +03:00
Piotr Szmelczynski c2c6fe59da
Revise sign (#6581)
* update docs

* add sign to intActivationTypes

* add RTTI macro

* update backend test

* add type prp test

* add visitor test

* add visitor and type_prop test to CMakeList

* add sign to constants.py

* delete backend tests and create new reference tests

* style fix

* remoove sign backend test from CMakeList

* create reference test for all supported types

* remove boolean type from evaluate method
2021-07-20 11:22:22 +03:00
Edward Shogulin c3c26b4807
[LPT] Refactoring: PoC (#5226)
* LPT fix for Windows

* LPT fix for Windows

* Remove inference_engine_transformations_EXPORTS

* [nGraph] Register new node in GraphRewrite

* [LPT] nGraph alignment

* [LPT] nGraph alignment: tests

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2021-07-19 16:48:20 +03:00
Patryk Elszkowski 0d9212683f
FakeQuantize - reference implementation refactor (#6478)
* new implementation of FakeQuantize

* move FakeQuantize backend test to fake_quantize.in.cpp

* enable some test for FakeQuantize

* Add support for PDPD broadcasting and some backend tests

* arm plugin expect less attributes in function call

* try to fix arm plugin build

* try to build arm plugin

* start changing backend test

* add check for attributes number in visitor test

* fix backend test after refactoring

* add default parameter value to runtime::reference::fake_quantize

* Revert "add default parameter value to runtime::reference::fake_quantize"

This reverts commit 9d2c00d967.

* add SLT for FakeQuantize

* remove fesetround

* change `v1` namesapce to `v0` in ref impl

* add FakeQuantize-1 to VERIFIED_OP_REFERENCES

* pass immutable reference to test functions
2021-07-19 12:20:54 +03:00
Ivan Tikhonov 697c52abfe
DeformableConv v8: reference implementation (#6514)
* DeformableConv v8:reference implementation

* ngraph codestyle

* update reference iplementation

* Disable tests on GPU

* fix unit tests

* Update DeformConv single layer tests

* fix serialization tests
2021-07-19 06:15:34 +03:00
Ilya Lavrenov bc36425381
Added suggest-override flag (#6631) 2021-07-16 18:55:05 +03:00
Katarzyna Mitrus fa8f45b7f2
GRN - reference revision and tests (#6629)
* Add GRN shared single layer test instance for CPU

* Remove GRN backend tests from fused_op.in

* Init GRN new template reference tests

* Add more bias values to GRN single layer tests

* Add more GRN template reference test cases

* Remove unused parameter from GrnParams

* Refactor GRN template referene tests and add more types

* Add anonymous namespace

* Add bf16 type to cpu single layer tests

* Add Serialization test

* Add GRN to revised ops
2021-07-16 14:47:13 +03:00
Bartosz Lesniewski c14edd4134
Revise PriorBoxClustered Op (#6525)
* Move type prop tests to separate file, add cases with exceptions thrown

* Add visitor test, add step to pbc attributes

* SLT for CPU, adjust GPU and SSLT to serve the step attr

* Add backend test

* Fix variance issue, verify by SLT

* Formatting fix

* Add another backend testcase

* Add PriorBoxClustered to trusted ops list

* Add step attr description, remove obsolete comments from ref impl

* Test multiple step values in SLT
2021-07-15 07:27:51 +03:00
Alexandra Sidorova 864b3ba62f
[CPU][IE TESTS] Added Gather-7 I8 test support (#6225) 2021-07-14 22:24:33 +03:00
Katarzyna Mitrus b7cc01b8e2
NormalizeL2 - reference implementation revision (#6349)
* Update SLT to generate input with 0 and eps sensitive treshold

* Fix normalize_l2 reference to enable empty axes case

* Simplify empty axes case

* Moved backend tests from fused_op

* Update SLT treshold

* Enable SLT for empty axes case

* More single layer tests

* Backend tests refactor

* Add helper function to for normalize_l2 backend tests

* Rewrite NormalizeL2 backend tests to use test case and common helper function

* Update layer tests

* Cleanup unit-tests manifest

* Add more backend tests

* Update comments

* Fix applying eps in MKLDNN normalize

* Add 5D tests

* Backend tests refactor

* Remove duplicated tests

* Upate IE tests manifest

* Add 5D SLT

* SLT cleanup

* Update skipped SLT for CPU

* Add NormalizeL2 to verified ops

* Skip GPU SLT for empty axes case

* Update SLT epsilon values

* Revert mkldnn_normalize changes

* Update tests and issue nubmers

* Remove reudndant axes copy from reference
2021-07-12 16:28:24 +03:00
Ilya Churaev 811f4c5ae9
Template reference tests (#6456)
* Added convert tests

* Moved convert tests to template plugin

* Fixed build

* Fixed comments

* Fixed templateFuncTests

* Fixed review comments

* Added dynamic registration of template plugin

* Fixed functional tests

* Fixed behavior tests

* Added ticket

* Try to avoid fails
2021-07-12 14:24:36 +03:00
Vladislav Golubev 2ff5d1fab1
[LPT] Plugin tests: added the ability to add test-cases with dynamic shapes (#6436) 2021-07-09 14:55:20 +03:00
Gabriele Galiero Casay a4fef45e0c
Enable lower input rank for BatchToSpace operation by fallback (#6553)
* Enable lower input rank for BatchToSpace operation by fallback

* Added conditions to check valid data input rank for evaluate and has_evaluate methods
2021-07-08 07:47:01 +03:00
Tingqian Li 340583fa35
Tq/revise asinh (#6498)
* update spec

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* use RTTI macro

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* fix op scope typo

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* simplify evaluate template function

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* override validate_and_infer_types() to align with spec

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add visitor API test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add type_prop test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add SLT asinh test in cpu/gpu plugin

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* change `T` in the spec to *T*

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* refector spec according to Cos

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Support element type of integral

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add new cpp files into CMakeLists.txt

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>
2021-07-08 07:18:09 +03:00
Ding Zhang 32897aba57
Fix deformable_convolution (#6393)
* Fix deformable_convolution

* Fix unused-variable

* Change a test case

* Change tests back and add single test case
2021-07-06 19:52:37 +03:00
song, bell bee21b5c5b
revise atan op (#6288)
* revise atan op

* use parametrized vistor API

* use new gtest macros

* Update docs/ops/arithmetic/Atan_1.md

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* Update docs/ops/arithmetic/Atan_1.md

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* Update ngraph/core/src/op/atan.cpp

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* update doc to follow the rules

* create type_prop for atan

* drop op_eval to be covered in backend

* add the missing type prop case

* add integer type ref impl

* fix clang issue

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>
2021-07-06 09:45:18 +03:00
Bartosz Lesniewski b231b2b576
Revise PriorBox op (#6363)
* Use ngraph rtti macros

* Check attribute count in visitor test case

* Add priorBox class for SLT

* Add priorBox SSLT

* Add CPU SLT

* moved type_prop tests to type_prop directory

* Add backend tests

* Add PriorBox to trusted ops list

* infer first dimension of size 2
2021-07-05 13:34:09 +03:00
Bartek Szmelczynski 13de29db97
Revise sinh (#6432)
* update sinh spec

* add rounding for integral type

* refactor ngraph sinh class, add backend, visitors and type_prop tests

* refactor backend test for int32, remove redundant includes, refactor spec, add SLT for ints

* fix style

* add sinh to list of trusted ops

* re-add Sinh to int SLT

* update python modules

* revert update of python modules, and fix the depracated typed_test formula

* fix deprecated typed_test formula
2021-07-05 10:11:02 +03:00
Gabriele Galiero Casay 9d9bba62a4
SLTs for BatchToSpace operation (#6417)
* Add Serialization SLT for BatchToSpace operation

* Add operation to list of trusted ops

* Refactor SLTs and extend test cases coverage
2021-07-02 19:07:51 +03:00
Ilya Lavrenov fc7f80a34e
CVS-34900: updated pugixml to v1.11.4 (#6301)
* Added pugixml as submodule

* CVS-34900: updated pugixml to v1.11.4

* Fixed link with pugixml

* USe pugixml::static

* Try to fix bug

* Removed GITHUB_PULL_REQUEST

* Replaced  OpenVINO_MAIN_SOURCE_DIR -> OpenVINO_SOURCE_DIR

* Removed some usages of IE_MAIN_SOURCE_DIR

* Use ngraph target directly
2021-07-02 11:36:31 +03:00
Piotr Szmelczynski 6d5e6de895
Revise cos (#6429)
* Update docs

* create type_prop test for cos

* Create visitor test foor cos

* add RTTI macro

* Create separate ref impl for integer input

* add cos to SLT integer activation type

* add backend test for int input

* add cos to constants.py

* style apply

* fix spec

* add ngraph check for outputs and inputs

* fix inputs ngraph check

* remove unnecessary includes

* style dix
2021-06-30 18:46:11 +03:00
Bartosz Lesniewski 5e501ff614
Revise NonZero op (#5909)
* Use ngraph rtti macros

* add visitor test

* add visitor test cases to cover all possibilities

* add boolean case to type prop tests

* add boolean type to sslt

* add nonzero to trusted op list

* multiply dimensions when input shape is dynamic

* Add and disable cpu instantiations of slts

* Add missing coma in skip tests config for cpu

* Fix expected output shapes in type prop testcases

* add partialshape input cases to type prop tests
2021-06-30 12:35:19 +03:00
Xie Zhengtian c0f227bddd
[AUTO][IE TESTS] Fix IE test issue for auto-device plugin (#6113)
* Auto will throw with incorrect config

* Update func tests for auto-device plugin

Signed-off-by: Zhengtian Xie <zhengtian.xie@intel.com>
2021-06-29 16:14:28 +03:00
Maxim Shevtsov 9422a7b240
fixed multi/hetero setConfig to throw on unsupported config keys (#6373)
* fixed multi setConfig to throw on unsupported config keys

* fixed hetero setConfig to throw on unsupported config keys. simplified the test on the incorrect keys

* aligning MULTI tests to the new (fixed) behaviour - also aligned with AUTO and HETERO

* fixed multi setConfig to throw on unsupported config keys- updating the MYX tests
2021-06-29 15:52:12 +03:00
Szymon Durawa 055a70bdf9
Add output_padding and output_shape into GroupConvolutionBackprop SLTs. (#6302)
* Add output_padding and output_shape into GroupConvolutionBackprop SLTs.

* Add legacy API for arm-plugin dependency.

* Replaced templated input, output and filter with one template.

* Apply correct format.

* Change to use INSTANTIATE_TEST_SUITE_P macro.
2021-06-29 15:34:29 +03:00
Patryk Elszkowski 4ed0cdb0dd
update ReshapeLayerTest to have unsigned in output axis (#6276) 2021-06-24 10:32:45 +03:00
Egor Shulman fcc07f80cd
[IE CPU] Reimplement extension nodes via MKLDNNNode API (#5784) 2021-06-23 14:22:10 +03:00
LuweiZhou c483cdced6
Revise swish (#5983)
* Update Swish OP description.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Use RTTI to declare/define NGraph Swish OP.
Add input element type check when constructing Swish OP.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add Swish into activation serialization test list.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add Swish into IE CPU plugin activation single layer test suit.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add Swish NGraph backend and visitor API tests.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Add Swish unsupported parameter data type test cases.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>

* Update the Swish OP visistor API to use typed test.

Signed-off-by: Luwei Zhou <luwei.zhou@intel.com>
2021-06-23 10:50:52 +03:00
Ilya Lavrenov fa2f9c5201
Migrated to official GoogleTest repo (#6286)
* Move gtest to <root>/wqthirdparty

* Fixed inference engine tests

* Fixed unit-tests

* Fixed GPU

* Fixed clDNN_unit_tests compilation

* Reverted ngraph changes

* Fixed VPU tests

* Fixed deprecated tests compilation

* Removed OpenVINO clone

* Added public submodule

* Removed

* Fixed Windows

* More updates for INSTANTIATE_TEST_SUITE_P

* Use release-1.10.0

* Removed ngraph copy of gtest

* Revert "Removed ngraph copy of gtest"

This reverts commit ec9fe08d79.

* Fixes for TYPED_TEST_CASE

* Fixed GNA tests

* Updated submodule

* Updaed index

* TMP disabled tests

* Revert changes and fix compilation errors

* Fixed caching tests

* Revert back

* Revert back all

Co-authored-by: Michael Nosov <mikhail.nosov@intel.com>
2021-06-22 17:39:39 +03:00