Commit Graph

1130 Commits

Author SHA1 Message Date
Michał Karzyński
01a5db7cc8 Add support for Affine operator (#6884)
* Add support for Affine operator

* Add support for Affine operator
2021-08-05 12:45:06 +03:00
Patryk Elszkowski
1b4d456f8e remove legacy fake quantize reference implementation API (#6810) 2021-08-05 07:50:47 +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
Ilya Churaev
031381dc07 Small api changes (#6923)
* Deprecate specialize_function

* Changed RTMap

* Fixed python build
2021-08-04 21:34:11 +03:00
Mikhail Nosov
12e2b3e4a9 Pyngraph tests: Install & run on Azure-Linux CI (#6927)
* Pyngraph tests: Install & run on Azure-Linux CI

* Typo correction

* more ci corrections
2021-08-04 20:29:49 +03:00
Gleb Kazantaev
73e8e91ffd Enable NopEliminatoin inside MO Backend (#6874)
* Refactor NopElimination; Execute NopEliminatoin inside MOC Backend

* Add missing header

* Refactor tests; use weak_ptr to avoid excess consumers for node

* Add test to check number of shared_ptr usages for graph nodes during Manager execution

* Remove AlgebraicSimplification forewer
2021-08-04 13:53:06 +03:00
Zhang Yi
0aa6b07628 [FrontEnd]enable pdpd ops conversion part3 (#6636)
* [FrontEnd]enable pdpd ops conversion part3

* Add adaptive pool2d op conversion (#1)

* param support tensor (#2)

* add missing sync_batch_norm

* Update pow.cpp

* deal empty axis (#5)

* deal empty axis

* apply review comments

* fix code style

* fix code style

* change shape to i32

* fix code in shape

* fix code style

* fix paddle code style

* remove redandent ops

* fix maxAdativePool

* fix expand_v2

* remove redandent code

Co-authored-by: Mang Guo <mang.guo@intel.com>
Co-authored-by: Luo Cheng <cheng.luo@intel.com>
2021-08-04 11:04:19 +03:00
Mikhail Nosov
91bda36df9 Separate executable for paddlepaddle unit tests (#6862)
* Separate executable for paddlepaddle unit tests

* Fix CI

* Move PaddlePaddle-specific python requirements to paddlepaddle test folder
Also produce build time warning when paddle test models generation is disabled

* Renamed back PADDLE_TEST_MODELS_DIRNAME to TEST_PADDLE_MODELS_DIRNAME

* Add dependency on CPU plugin (PaddlePaddle fuzzy tests use CPU plugin for inference)

* Fix code style

* Fix review comments #2

* Code style fix

* Add dependency of 'paddlepaddle_test_models' to 'test_model_zoo'
2021-08-04 10:21:07 +03:00
Ilya Lavrenov
b9b0a8b34a Fixed compilation with clang (#6917) 2021-08-04 09:28:20 +03:00
Bartek Szmelczynski
c963136453 Revise less equal (#6720)
* update spec, add visitors, backend test

* remove visitors test as it is implemented in another PR

* remove visitors test from CMakeLists

* remove old backend tests, refactor minor parts of the code

* add namespace

* refaactor template test for less_equal op
2021-08-04 03:18:25 +03:00
Piotr Szmelczynski
a30bd0c9bb Revise logical and (#6731)
* update docs

* add host tensors validation

* create type_prop tests

* create serialization single layer test

* create visitor test

* create op_reference test

* add logicalAnd to constants.py

* create additional op_reference tests

* add check for number of visited attributes in visitor test

* update auto_broadcast description

* remoove backend test

* update LogicalNot params name

* remove backend test from CMakeList

* create util function for type_prop tests

* update op_reference tests

* remove typo in docs

* remove unsupported types from evaluate

* fix bug in op_reference test

* refactor visitor test

* update math formula in the spec

* update has_evaluate types
2021-08-03 19:37:16 +03:00
cecilia peng
950d7b8597 pdpd frontend: enable deformable_conv, enable multiclass_nms and matrix_nms. (#6833) 2021-08-03 18:58:56 +03:00
Ilya Lavrenov
344e063002 Removed name from ngraph tensors (#6446) 2021-08-03 14:47:30 +03:00
Tomasz Dołbniak
e000c52125 Maxpool-8 shell (#6332)
* Initial version of v8::MaxPool op class

* Type instead of Type_t to indicate element type

* Attribute visitor test

* Common MaxPoolBase base class

* More refactoring

* v8::MaxPool cleanup

* Pooling ops inference helper extension - window dilation

* New MaxPool 3D type prop tests

* Common part of MaxPool validation part extracted to the base class

* MaxPool-8 shape inference with base class utils

* infer_batched_pooling_forward arguments reorder to avoid compilation errors

* Align the rounding type attribute name for both MaxPool version

* MaxPool-8 axis attribute

* Missing attributes

* Code formatting

* PR feedback

* MaxPool-1 RTTI definition adjustment
2021-08-03 08:37:17 +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
Ilya Lavrenov
eabec388e2 Enabled LTO for ONNX FE (#6878)
* Fixed Windows public precommit

* ONNX LTO
2021-08-02 13:48:33 +03:00
Ilya Lavrenov
c38f08b777 Use protobuf-lite for ONNX FE by default (#6829) 2021-07-31 17:21:35 +03:00
Maxim Vafin
9dbc71063c Improve model cutting (#6835)
* Improve model cutting

* If part of model is cut, conversion rules must not run on it

* Add incorrect cut test

* Fix code style

* Fix test

* Fix codestyle

* Do not change op places graph on convert

* Assert output has producer

* Fix code style
2021-07-30 19:42:55 +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
Ilya Lavrenov
518ec79cb0 Updated samples compile options (#6818)
* Don't warn about obsolete cmake usage

* Removed build flags for samples

* Fixed ngraph with -Wpedantic

* cmake for 3rdparty
2021-07-30 13:54:09 +03:00
Zhang Yi
81377a71d0 [FrontEnd]enable PDPD 16 ops conversion Part2 (#6632)
* [FrontEnd]enable 16 ops conversion

* [FrontEnd]fix typo in interpolate

* param support tensor (#3)

* Update hard_sigmoid.cpp (#4)

* Yi3/fix paddle part2

* fix paddle conversion

* ops forward declaration

* use tile instead of broadcast

* Add validation check in dropout (#8)

* fix conflict

* fix code style

* fix transpose2

* use perm size in transpose2

* remove check in transpose2

Co-authored-by: Luo Cheng <cheng.luo@intel.com>
Co-authored-by: Mang Guo <mang.guo@intel.com>
2021-07-30 13:53:39 +03:00
Maxim Vafin
9a36e77f50 Accept stream pointer instead of shared_ptr in paddle frontend (#6807)
* Accept stream pointer instead of shared_ptr

* Fix build

* Fix build tests on centos
2021-07-30 12:58:17 +03:00
Gabriele Galiero Casay
c1d8c23d48 Remove deprecated reduce logical reference implementation signatures (#6850) 2021-07-30 12:38:17 +03:00
Mateusz Bencer
44bcc702e8 Fixed problem with model_inputs method in ONNX Editor (#6860) 2021-07-30 10:55:45 +02:00
Ivan Tikhonov
bc06279825 Fix clone_function: clone ngraph::Variables (#6804)
* fix clone function

* ngraph codestyle

* fix copy function for assign/read value v3

* add unit test
2021-07-30 10:19:12 +03:00
Maxim Vafin
5920cf849d Implement paddle frontend methods for partial conversion (#6784)
* Implement paddle frontend methods for partial conversion

* Apply feedback

* Fix codestyle

* Remove normalize implementation and change convert signature for partialModel case

* Apply review feedback

* Apply review feedback

* Fix onnx importer convert signature

* Fix codestyle

* Add test of unsupported op

* Fix code style

* Remove "normalize()" tests

* Fix onnx tests

* Fix build

* Fix merge conflicts
2021-07-30 10:14:18 +03:00
Patryk Elszkowski
0861a5c910 Validate speedup (#6779)
* Add minor speedup changes.

* inline clip

* reduce clip calls

* more Interval::size - move to header

* terminate instead of throwing exception

* back to throw exception when element type was not found

* rename variable
2021-07-30 08:59:36 +03:00
Yury Gaydaychuk
7ab92b5845 [CPU] Adaptive pooling implementation (#6594) 2021-07-29 20:41:24 +03:00
Anastasia Popova
e70e7e1e9d Shell implementation for RandomUniform. (#6782)
* Added shell implementation for RandomUniform.

* Small correction.

* Small correction.

* Corrected wrong type.

* Corrected error message, corrected setters.
2021-07-29 18:19:54 +03:00
Gleb Kazantaev
0a1cad52ab Avoid Constant data copy inside Reshape constant folding (#6410)
* Avoid Constant data copy inside Reshape constant folding

* Fix Codestyle

* Updated Squeeze, Unsqueeze cf

* Deprecate set_data_shape method

* Fix Pruning
2021-07-29 17:51:25 +03:00
Egor Shulman
ab8d046642 [CPU] NormalizeL2 - unsorted axes are not supported (#6602) 2021-07-29 17:30:38 +03:00
Mikhail Nosov
868fad33ab [MO] Add support to moc_frontend of ":" as delimiter for --input and --output (#6543)
* [MO] Add support to moc_frontend of ":" as delimiter for --input

Additions:
Changed default logic for 'Place::get_in(out)put_port' to return nullptr
Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr

* Corrected comments in code

* Missing empty line

* Clang format fixes

* Fix review comments

* Updated test to verify review comments fixes

* Update unit tests after rebase

* Apply review comments
2021-07-29 13:09:51 +03:00
Mikhail Nosov
a95d59014c Rename "pdpd" frontend to "paddle" (#6842)
* Rename "pdpd" frontend to "paddle"
Also renamed mo_pdpd.py+main_pdpd.py to mo_paddle.py+main_paddle.py

Class names were not renamed

* Update package_BOM.txt
2021-07-29 11:43:07 +03:00
Ilya Churaev
62ed84e880 Avoid copy of data when create Constant from HostTensor (#3388)
* Avoid copy of data when create Constant from HostTensor

* Fixed build
2021-07-28 18:27:27 +03:00
Bartosz Lesniewski
1471095bdb Revise Less (#6728)
* Revise spec

* Comparison backend test POC

* Split Comparison ops tests into separate files

* remove comparison.cpp, remove unused imports, replace for_each with range based for

* remove unnecessary ngraph:: prefixes

* Fix links in spec

* Add Less to trusted ops list

* Add missing ','

* Use builder in backend tests

* Remove old backend tests for less, equal
2021-07-28 15:36:07 +03:00
Mateusz Bencer
dc5f44e929 Integration ONNX Editor with FE API (#6773) 2021-07-27 12:20:39 +02:00
Patryk Elszkowski
7bbf3775bd initialize NodeBuilder registry by IIFE instead of double lock pattern (#6753) 2021-07-27 07:53:29 +03:00
Szymon Durawa
f5fe8550d9 Remove deprecated convolution API. (#6732)
* Remove deprectaed convolution API.

* Apply correct style.
2021-07-27 07:36:10 +03:00
Yury Gaydaychuk
e5a990e356 [CPU] RoiPooling handles border proposals correctly (#6199) 2021-07-26 23:35:27 +03:00
Dawid Kożykowski
b4ad7a1755 Refactor visitor tests for BinaryElementwiseArithmetic ops (#6667)
* add binary_elementwise file

* change binary_elementwise.hpp to binary_ops.hpp

* migrate mod operation test o typed template test

* add tests for remaining binary ops

* remove comment

* fix formatting to match clang-format

* add RVO-exploit string concatenating andbeautify the code

* add validation for attributes number

* add missing visit_attributes() calls

* add missing 4th param to NGRAPH_RTTI_DEFINITION calls

* fix formatting to match clang-format
2021-07-26 15:49:14 +03:00
Dawid Kożykowski
1a92a69515 Refactor visitor tests for UnaryElementwiseArithmetic ops (#6756)
* remove namespace dependencies from header file

* add RVO-exploit string concatenating

* update acosh test

* update erf test
2021-07-26 15:46:31 +03:00
Ilya Lavrenov
37c619b0b8 Fixed compilation with Intel compiler (#6788)
* Fixed compilation with Intel compiler

* Fixed template containers for VPU

* Fixe one-dnn

* Updated submodule
2021-07-26 12:42:05 +03:00
Evgenya Stepyreva
b907c3b84f set_output_type speedup (#6754)
* set_output_type speedup

* style

* Final optimization

* Removed extra include, removed unnecessary lock_guard

* Typo

* Apply suggestions from code review

Co-authored-by: Mikhail Nosov <mikhail.nosov@intel.com>

* Update ngraph/core/include/ngraph/descriptor/tensor.hpp

Co-authored-by: Mikhail Nosov <mikhail.nosov@intel.com>

Co-authored-by: Mikhail Nosov <mikhail.nosov@intel.com>
2021-07-26 12:00:13 +03:00
Mikhail Nosov
ea60879a8b PDPD: Install generated PDPD test models as 'test' component (#6783)
* Install generated PDPD test models as 'test' component

Needed when test package is installed on another machine which don't have generated models

To search installed models, 'FE_TEST_MODELS' env variable is introduced

* Clang fixes

* Fix PDPD_Places test from latest master
2021-07-26 10:12:26 +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
Ivan Tikhonov
6e8b0e0ea6 pdpd Place: remaining methods, refactoring, unit tests (#6637)
* pdpd Place: remaining methods, refactoring, unit tests

* resolve merge issues

* use references instead of shared_ptr for Var and Op descs

* Add import pdpd fuzz test; To enable collection of pdpd models, cmake NGRAPH_PDPD_FRONTEND_ENABLE key should be set, the models will be generated to pdpd_test_models folder.

* fix ngraph codestyle

* fix review comments

* Add new methods for Place class

* fix implementation, add tests

* Place: Return nullptr instead of throwing an exception

* ngraph codestyle

* revert return nullptr

* fix build

* fix tests

* fix fuzzing tests

* fix fuzzing tests

* fix readme file

* Revert "fix readme file"

This reverts commit d061e69a0d.

* Resolve review comments

* ngraph codestyle

Co-authored-by: Somsikov, Andrey <andrey.somsikov@intel.com>
2021-07-23 15:22:05 +03:00
Mikhail Nosov
ac0f3c5271 Install 'paddlepaddle' for Azure-Linux CI (#6764) 2021-07-23 09:14:08 +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
Eugeny Volosenkov
f328eeced6 MultiSubgraph in nGraph (#6621)
* Add multisubgraph

* Fix format

* Fix clang format

* Fix TensorIterator RTT

* Fix subgraph

* Fix codestyle

* Fix comments

* Fix comments

* Fix coments

* Fix comments

* delete get function

* fix methods

* fix ci

* Fix ci

* fix bugs

* Fix cmake

* Fix ci

* delete virtual function

* delete virtual function

* fix ci

* Fix ci
2021-07-23 07:03:25 +03:00
Maxim Vafin
1ebdcb1d71 Fix reading constants in paddlepaddle frontend (#6755) 2021-07-22 19:21:32 +03:00