Commit Graph

708 Commits

Author SHA1 Message Date
Ivan Tikhonov
b792214d04 Fix python API for Loop/TensorIterator/Assign/ReadValue operations (#3275)
* update python API for the Loop operation (attempt 1)

* fix code style

* update visitor API, pep8

* codestyle

* delete TensorItertorBuilder

* update visitor API for Loop and TensorIterator

* fix code issues (python)

* update python api:assign/read value

* fix unit tests

* fix python code style

* fix loop unit test

* fix loop unit test

* fix build on centOS
2021-03-11 13:22:24 +03:00
Patryk Elszkowski
6d24629843 add backend tests (#4611)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-11 09:27:03 +03:00
Patryk Elszkowski
f5be898017 subtract ref impl: add backend tests (#4612)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-11 07:03:40 +03:00
Marina Kolpakova
6e490c24e2 [§] introduces snippets generator (#4349) 2021-03-10 14:15:38 +03:00
Gabriele Galiero Casay
bd949c6baf BinaryConvolution Reference Implementation (#4278)
* Add BinaryConvolution unit tests.

* Changed types to u1.

* Add BIN precision handling in TestCase class.

* Refactored validate and infer types to enhance dynamic shape inference

* Add type_prop test to cover invalid op cases and dynamic shapes

* Fix style

* Disable check for float type of data batch input

* Add type_prop test for incompatible input channels in inputs

* Disable backend unit tests

* Fix style

* Add reference implementation

* Add backend tests

* Add single layer tests

* Add check for float element type of batch data input

* Refactor backend test cases to compare with regular convolution

* Add serialization tests

* Clean up

* Add 1D and 3D tests into op_eval

* Changes in reference implementation to improve readability

* Add ticket information for todo tasks

* Fix implementation misbehavior for filter channels

* Add backend unit tests to cover strides, dilations, padding, channels and batches

* Add end of line into files

* Change name of type_prop unit tests

* Simplified lambda to get spatial dimensions of filters

* Add comment to support filters input as Parameter

* Add namespace details for BinaryConvolution utility functions

* Address review comments

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-03-09 22:58:25 +03:00
Evgeny Lazarev
99f94ca09c Adding v7::Gelu operation (#4497)
* Added support for Gelu-6 to the MO

* Adding Gelu-6 to ngraph and python API + some tests

* Fixed typo in the Gelu approximation mode

* Fixed Gelu-6 reference implementation for Tanh mode

* Added transformation to downgrade v6::Gelu to v2::Gelu

* Added specification for the Gelu-6

* Code style fixes

* The Gelu-6 operation specification update

* Fixed compilation issue in reference implementation for Gelu

* Fix compilation issues for some OSs

* Code style fix

* One more cpplint issue fix

* Fixed Gelu6 reference implementation compilation on Windows.

* Code style fix

* Fixed various ngraph unit tests

* Code style check

* Reverted Gelu-2 to be fused op

* Fixed Gelu6 downgrade transformation

* Added unit test for Gelu6Downgrade transformation

* Update copyright year

* Updated copyright year

* Replaced tab characters with 4 spaces in IR reader tests

* Code style fixes

* Added default value for GeluApproximation mode for Gelu-6 op

* Fixed code style for Gelu-6

* Changed order of parameters for the Gelu evaluate to potentially avoid backward compatibility issues with ARM plugin

* Fixed code style

* Introduced opset7. Moved Gelu6 to opset7

* Fixed non-updated transformation

* Fixed opset version in ngraph Python API for Gelu operation

* Fixed typo in the opset number in the documentation

* Reverted some changes related to Gelu6

* Updated MO to produce Gelu7

* Updated unit tests for Gelu

* Updated Gelu7 specification

* Changed gelu reference implementation. Added opset7 to Python packages

* Updated Python API tests for Gelu operation

* Code style fix

* Marked get_approximation_mode function as const

* Added missing "const" qualifier

* Fixed code style issues in tests

* Added extractor for MxNet operation Gelu

* Spelling issues fix

* Updated MxNet supported symbols

* Added NGRAPH_OP_SCOPE for Gelu7 validate_and_infer_types

* Fixed a typo in the comment
2021-03-09 22:45:45 +03:00
Sergey Lyubimtsev
dde565d187 Align builds locations for ngraph and ie python bindings (#4095)
* Align builds folders for ngraph and ie python bindings

* fix merge issue

* Replace hardcoded path in PYTHONPATH with setupvars.sh

* remove unused docker instructions

fix output directory for local wheel build (ngraph_DIR is set)

* add newline at end of file

* fix merge issue
2021-03-09 16:28:23 +03:00
Bartosz Sledz
c99b6feea2 Add support for input dynamic shape in ONNX LpNorm operator (#4613) 2021-03-09 13:41:55 +01:00
Bartosz Sledz
fc589572a1 Fix ONNX GroupNorm and ExperimentalDetectronGroupNorm (#4579) 2021-03-09 13:40:45 +01:00
Patryk Elszkowski
e5e7715a52 backend unit-test for divide op (binary_op) (#4540)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-09 06:41:35 +03:00
Ilya Churaev
972499b991 Fixed KW hits (#4639) 2021-03-05 11:12:52 +03:00
Bartek Szmelczynski
932558b403 Revise sin (#4337)
* rearrenge the spec to match the criteria

* Add Sin to the list of unary operators for unit tests

* add detailed description for sin

* remove latex tags for theta symbol

* add supported input rank for input tensor

* add link to wikipedia

* add description for input a
2021-03-04 15:29:11 +03:00
Ilya Churaev
fff0a85910 Fix clone affinity (#4577)
* Added test

* Fixed code style

* Removed propagate_rt_info function

* Revert "Removed propagate_rt_info function"

This reverts commit 514a21b93c.

* Don't skip conflicted RT info

* Fixed code style
2021-03-04 13:01:44 +03:00
Tomasz Dołbniak
a085b68d37 Subgraph extraction in ONNX model editor (#4107) 2021-03-04 10:12:37 +01:00
Tomasz Dołbniak
a35dfc4c5a Disable the randomly failing test (#4555) 2021-03-03 07:33:09 +03:00
Ilya Lavrenov
1d88cdc45e Fixed gtest build / usage in case of RelWithDebInfo (#4554)
* Fixed gtest build / usage in case of RelWithDebInfo

* Added more modules to fluid_preproc_tests tests
2021-03-03 07:27:23 +03:00
Ivan Tikhonov
6fb742bec4 Fix LowLatency transformation for Loop (#4557)
* unrolling for Loop operation, fix LowLatency transformation for Loop

* delete unnecessary includes

* update copyright

* fix centOS build, resolve review remarks
2021-03-03 07:21:06 +03:00
Ilya Churaev
77e80ddbb3 Fixed fuzzer issues (#4553)
* Fixed code style

* Revert redundant code

* Fixed fuzzer issues
2021-03-02 21:07:53 +03:00
Ivan Tikhonov
d4c5cb2375 Removing unnecessary order checking in Loop/TI operations (#4531)
* deleting a check of order of the input/output descs in ti/loop operations

* added ngraph_reader unit test

* unrolling for Loop operation, fix LowLatency transformation for Loop

* Revert "unrolling for Loop operation, fix LowLatency transformation for Loop"

This reverts commit 7188921ad7.
2021-03-02 18:10:41 +03:00
Szymon Durawa
7e57ec54b3 Revise ADD operation reference implementation (#4453)
* Additional unit tests for Add op, add single layer serialization tests for elementwise ops.

* Format unit test file.
2021-03-02 07:37:13 +03:00
Tomasz Jankowski
be614035d1 [ONNX] Fix unidirectional broadcast Add, Div, Mul, Sub v6 (#4462)
* Fix uni broadcast add_v6 op

* Add exception for dynamic rank

* Correct axes mapping in Div, Sub, Mul

It commonizes the approach from Add operator.

* Add unit tests to Div, Sub, Mul v6 ops

* Apply constness

* Improve add_v6 unit test readability

* Correct style

* Remove useless or redundant includes
2021-03-01 19:40:44 +03:00
Ilya Churaev
c160912b70 Fixed KW for reference impls (#4530) 2021-03-01 18:07:33 +03:00
Mikhail Ryzhov
3babad19be Added specific for Python3.8 way how to find libs (#4513)
On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH.
os.add_dll_directory() can be used
2021-03-01 16:01:04 +03:00
Jozef Daniecki
5f14fe9ca1 Fix NonZero output shape inference for static inputs. (#4406)
* Improved error checking in serialization dynamism resolving.

* Fix NonZero output type deduction to resolve also second shape.

* Add NonZero serialization SLT.

* Generalized shape size calculation.

* Refactored dynamic_to_static() in serialization.

* Fixed NonZero dynamic shape inference.
2021-03-01 13:29:37 +03:00
Evgenya Stepyreva
a3458a2e0c Test Assign-ReadValue shape propagation while function changes input shape (#4515) 2021-03-01 07:18:30 +03:00
Tomasz Dołbniak
cadcd7c926 Remove a duplicate xfail marker for ONNX dropout tests (#4522) 2021-03-01 07:17:29 +03:00
Bartosz Sledz
b0043bb599 ONNX Slice operator support types dynamically (#4507) 2021-02-26 16:28:51 +01:00
Ewa Tusień
f88f81c6ba OnnxBackendNodeModelTest XFAILs cleanup (#4432) 2021-02-26 15:34:24 +01:00
Katarzyna Mitrus
76fed9315e Legacy LSTM/RNN/GRU tests clean up (#4265) 2021-02-26 14:27:18 +01:00
Ivan Tikhonov
7cf7e1b5fa Reset Variable to dynamic state in revalidate_and_infer function of ReadValue op (#4430) 2021-02-26 14:01:29 +03:00
Mikhail Ryzhov
2db51bb0d0 [Python] Fixed issues in runtime wheel (#4359)
* Added rpath for plugins

* Corrected dll pathes for PIP

* Fixed plugin install names

* Put libs to the sub-package

* Corrected libraries path according to the new location

* Added download and home page urls
2021-02-26 10:31:58 +03:00
Gleb Kazantaev
53a96f4a5a Added default value for broadcast to SquearedDifference operation (#4490) 2021-02-26 07:44:08 +03:00
Ilya Churaev
1458ba392e Removed hardcoded shapes from LogSoftmax operation (#4475)
* Removed hardcoded shapes from LogSoftmax operation

* Added tests

* Fixed comments
2021-02-25 20:02:14 +03:00
Tomasz Dołbniak
24d2502f83 Check the inputs number before unsafe access (#4480) 2021-02-25 15:02:38 +01:00
Patryk Elszkowski
af712743ab Comparison of InputDescription and OutputDescription in SubGraph (#4123)
* draft - looks good, need merge with other branch

* apply suggestions from PR

* apply suggestions from PR

* add unit test - NotValidInputOrOutput

* rephraze equal for constant

* cleanup all TODOs

* Try to fix TI

* try to satisfy PR comments

* fix spelling

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-02-25 16:31:35 +03:00
iliya mironov
c8450fabb5 Disabled unit test for CTCGreedyDecoder with fp16 input data (#4481) 2021-02-25 15:35:17 +03:00
Bartosz Sledz
6c98171e23 Fix output names for group of Strided Slices to Variadic Split optimization (#4378)
* Add tests which reproduces issue

* Fix Output Names in StridedSlice optimization

* Fix codestyle

* Add check if at least one StridedSlice has Result operation as a consumer
2021-02-25 12:53:46 +03:00
Anton Pankratv
61422f97ac Moved preprocessing macro tools to separate library (#4464) 2021-02-25 07:32:48 +03:00
Tomasz Dołbniak
4d9ede42ca Floats comparison implementation in IE_Engines (#4342) 2021-02-24 12:10:00 +01:00
Evgeny Lazarev
7420bb6cb0 Fix pad op with int input (#4438)
* Added operation ConvertLike to the MO

* Fixed transformations with Pad which insert Const with pad value of incorrect type

* Added constant folding to ConvertLike operation

* Fixed unit tests for Pad transformations to include ConverLike operations

* Update copyright year

* nGraph code style fix

* Added OV_ITT_SCOPED_TASK for ConvertLike constant folding
2021-02-24 09:56:36 +03:00
Ivan Tikhonov
afded195ba delete unnecessary check in validate function of TI (#4415) 2021-02-24 07:13:47 +03:00
dependabot[bot]
a6989bb047 Bump tox from 3.21.4 to 3.22.0 in /ngraph/python (#4452) 2021-02-22 17:03:23 +01:00
Konstantin Satunin
0682d773ca Unique locations for pdb files (#4446) 2021-02-22 11:41:03 +03:00
Konstantin Satunin
342ae0daa7 unique locations for pdb files (#4445) 2021-02-20 23:48:47 +03:00
Konstantin Satunin
8f5453d70f Pyngraph independent locations for lib files (#4440)
* Make unique location for pyngraph lib files

* fix variable usage
2021-02-20 18:15:57 +03:00
Maksim Shabunin
9559f6f301 Changed ngraph header to fix client build with VS2015 (#4386) 2021-02-19 10:19:52 +03:00
Maxim Andronov
f26c82bde3 [CPU] Supporting constant networks (#4379) 2021-02-19 09:38:20 +03:00
Liubov Batanina
ffe99fb66f Fixed Interpolate headers (#4403) 2021-02-19 08:39:19 +03:00
Ilya Churaev
e337fb0661 Fixed backward incompatible change (#4303)
* Fixed backward incompatible change

* Fixed ngraph unit tests
2021-02-19 08:37:18 +03:00
Michał Karzyński
ec9b5894fb [ONNX] Add support for BitShift operator (#4368) 2021-02-17 16:39:27 +01:00