Commit Graph

230 Commits

Author SHA1 Message Date
Anastasia Popova
bfc6e617a7 Updated RandomUniform spec to align with the implementation. (#7491) 2021-09-15 10:26:39 +03:00
Bartek Szmelczynski
66bad412a4 udpate scatter spec (#7086)
* udpate scatter spec

* add info about udpates tensor rank

* update updates type

* add values to example, minor style change

* udpate spec style

* add spaces for the better formatting

* Update docs/ops/movement/ScatterUpdate_3.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/ops/movement/ScatterUpdate_3.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/ops/movement/ScatterUpdate_3.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/ops/movement/ScatterUpdate_3.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/ops/movement/ScatterUpdate_3.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2021-09-13 06:44:20 +03:00
Gabriele Galiero Casay
c862abae03 GatherTree specification refactored (#7326)
* GatherTree specification refactored

* Fix typos
2021-09-10 06:31:35 +03:00
Katarzyna Mitrus
5f1ffc527d Propose new Slice-8 operation - update (#7257)
* Propose new Slice-8 operation

(cherry picked from commit a44ed32a6f)

* Align category

* Update detailed descripiton

* Update Inputs/Outputs description

* Add no attributes info

* Precise range of axis values

* Update descriptions

* More details about negative steps and slicing backwards

* Add more details

* Add examples

* Change step input to Required

* Apply spell check comments

* Add missing commas

* Add separate T_AXIS type for axis input

* Make example data 2D

* Remove duplicated example

* Apply review suggestions

Co-authored-by: Michal Karzynski <michal.karzynski@intel.com>
2021-09-06 13:47:23 +03:00
Piotr Szmelczynski
81c8cd711b Revise logical not (#6942)
* update spec

* remove backend tests and create op_reference test

* add logicalNot to constants

* add NGRAPH CHECK for number of inputs and outputs

* create type_prop tests

* create visitor test

* add type_op and visitor tests to CMakeLists

* remove backend test from CMakeList

* update T to T_BOOL

* update outputs part in spec

* fix type in the spec

* fixed conflicts in CMakeList

* update ReferenceLogicalLayerTest to also work with unary logical operator

* update logical_not op_reference test to use ReferenceLogicalLayerTest

* fix style

* fix style

* resolve conflict

* resolve conflict

* remove typo

* fix style

* Update ReferenceLogicalLayerTest class tto take input as a vector

* Create makeLogical function that takes ParameterVector as parameter

* update op_reference logical tests to take input as a vector

* Replace elem_type with input.type

* update getTestCaseName method
2021-08-27 06:55:19 +03:00
Piotr Szmelczynski
ac53316f49 Revise greater equal (#7111)
* update spec

* create op_reference test

* add greateEqual to constants.py

* add ngraph_check for number of inputs and outputs

* add include

* fix style

* add information about broadcast in examples in spec

* Remove redundant reegistration of a new test class

* Remove visit_attributes method

* update outputs part in Greater and GreaterEqual spec

* fix typos in spec
2021-08-25 11:35:58 +03:00
Anton Chetverikov
f8e90f0c56 [MO] Add transformation for single CTCGreedyDecoder operation (#7023)
* Add transformation for single CTCGreedyDecoder operation

* Fix style in op specification

* Update transformation logic

* refactor old tests and add tests for new transformation

* Move tf specific front transformations to tf folder

* Update transformation logic and comments

* Add run_after function and update comments

* Add output_sparse_format attribute to extractor

* Update transformation conditions and tests

* Fix incorrect comment

* Move sparse_to_dense_replacer to front/tf folder to fix problems with class registration

* Update import

* Update output ports handling in transformation

* Update test

* Fix BOM file

* Update pattern for ctcloss transformation

* Fix and refactor tests for ctcloss transform

* Update transformation conditions
2021-08-24 15:42:27 +03:00
Pavel Esir
29193982d4 [IE] Convert to unsigned NMS:0 ->Gather path (#6474)
* inserted Convert to unsigned

* moved declarations from hpp into cpp, specification corrected

* added static const modifier

* updated convert specification

* minor corrections

* split into 3 passes(Init, Propogate, Update), renamed final pass to ConvertNmsGatherPathToUnsigned

* added description why transformation is needed

* added matcher for several NMS versions, removed TRANSFORMATIONS_API macros from cpp

* applied comments:
- used GraphRewrite instead of FunctionPass
- simplified some expressions
- corrected case when Converts output goes to multiple nodes
- added to MOC transformations
- other minor corrections

* removed redundant namespace prefixes

* fixed #include <ngraph/pass/graph_rewrite.hpp>

* removed matcher_scope, debug code, and redundant dynamic_cast
2021-08-23 18:35:37 +03:00
Gabriele Galiero Casay
8d4e850356 Fix op category section in operations spec (#7130) 2021-08-23 13:12:46 +03:00
Gabriele Galiero Casay
211ea3c63c ReverseSequence specification refactored (#7112)
* ReverseSequence specification refactored

* Change attribute description to avoid confusion

* Allow seq_lenghts input to be of floating-point precision
2021-08-20 11:58:16 +03:00
Katarzyna Mitrus
7aeec6ffe4 CumSum spec revision (#6966)
* Update detailed description

* Update exclusive attribute description

* Update Inputs/Outpu description

* Update types

* Update descriptions

* Update data input rank info
2021-08-20 06:55:13 +03:00
Nikita Semaev
184b3cbe42 Review/update spec for NotEqual operation (#6797)
* Hiding the problem, Validate() changes 'function'

* Review/update spec for NotEqual operation

* Remove unnecessary edits not related to the ticket

* Removing the extra word binary for the short description

* Re-writing detailed description

* Correcting punctuation docs/ops/comparison/NotEqual_1.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Specifying auto_broadcast in the short description is similar to Equal spec

* The range of values for auto_brodcast is similar to Equal spec and includes the missing pdpd

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2021-08-19 21:54:18 +03:00
Michał Karzyński
220b3ed1a1 Propose new MaxPool-8 operation (#5359) 2021-08-18 10:41:59 +02:00
Bartek Szmelczynski
563fd8fa9b Revise greater (#6955)
* add template test, remove backend tests, update spec

* minor spec update

* fix spelling errors in spec

* add not converted types
2021-08-17 07:16:56 +03:00
Dawid Kożykowski
751f6c304a Update spec for LogicalXor operation (#6913)
* update markdown file for logical xor operator

* update information on broadcasting

* update xor spec to match other logical ops specs
2021-08-16 14:59:49 +03:00
Dawid Kożykowski
273c7188a4 Beautify operator specifications (#6958)
* beautify operator specifications

* further update ops specs

* update FloorMod spec

* update adaptive pool spec

* update HSwish spec

* bringg back old erf version
2021-08-12 13:11:30 +03:00
Anastasia Popova
f26ecdd53f Corrected formulas rendering. (#6986) 2021-08-12 13:08:43 +03:00
Xiping Yan
559ad4733f Xp/revise ngraph atanh (#6596)
* revise ../docs/ops/arithmetic/Atanh_3.md

* revise atanh

* recall atanh input data type description

* Revert "recall atanh input data type description"

This reverts commit 08e38f8c76.

* Migrate atanh to template plugin reference tests

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix build fail.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove atanh.in.cpp

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Atanh only accept [-1,1].
If input value outside of this range, it will return nan.
But nan is not value, can't compare.
So I update the reference implement.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* clang format

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Revert submodule mkl-dnn

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* op::Atanh->op::v3::Atanh

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Keep algin with "Tensorflow", revert range input to [-1.0, 1.0];

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix template test issue: if expect and actual both are nan, return true.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* 1: revert add new code to process condition: res and ref both are nan.
2: change || to ^, it looks like better.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2021-08-12 05:25:35 +03:00
Bartek Szmelczynski
289df8db27 Revise equal (#6605)
* update spec, init backend file for equal op

* add backend, visitors, serialize SLT tests

* add backend test to manifest cause of mismatch of output type with cpu plugin

* add equal to list of trusted ops and to cmakelist file

* refactor backend tests to the new template

* refactor spec

* remove external link in numpy broadcast and update example

* remove comparison.in.cpp file and related tests from manifest

* fix example

* remove redundant arguments

* refactor backend tests

* add pdpd broadcast to the spec, and different precison to SLT test

* add precisions to SLT cpu

* remove unsupported type from SLT

* revert the deletion of comparison.in.cpp file

* remove visitors test, since it will be added in the other PR

* remove equal from CMakeLists.txt

* refactor links in the spec

* revert unwanted changes

* remove equal from unit test manifest

* revert links modification in spec

* add namespace

* split SSLTs for comaprison ops into seperate files

* fix SSLTs names

* add missing new lines

* udpate output type in spec

* rafactor numeric backend test to template

* merge numeric template tests into equal
2021-08-11 13:04:30 +03:00
Dawid Kożykowski
461584ffb1 Update spec for LogicalOr operation (#6852)
* update markdown file for logical or operator

* update information on broadcasting in logical operators spec

* change *T* to *T_BOOL*

* add information about input shape

* remove divergence between logical_or and logical_and specs
2021-08-09 13:50:48 +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
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
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
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
Anastasia Popova
c776ea90d8 Added specification for RandomUniform operation. (#6196)
* Added RandomUniform specification.

* Extended description of obtaining float numbers.

* Added description of obtainin float16 and double values.

* Added description of xor symbol.

* Small correction.

* Small corrections.

* Added initial type attribute.

* Corrected IR example, removed unnecessary default values.

* Small correction.

* Added information about type cast between initial and output types.

* Removed initial type attribute.

* Corrected output_type description.

* Corrected minval, maxval description. Corrected IR example.

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Removed unnecessary paper link.

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2021-07-23 14:22:53 +03:00
Eugeny Volosenkov
37b46de164 If spec (#6296)
* Add If specification

* Fix spec

* Fix doc

* Fix doc

* Fix Description

* Add detaile description

* Fix IR

* Fix IR

* Fix IR

* Fix IR

* fix doc

* fix doc

* Change internal network to subgraph

* move to condition dir

* Change opset in IR

* Fix comments

* Fix comments

* Fix comments

* Update to master

* fix comments

* fix ci
2021-07-21 15:52:37 +03:00
Jozef Daniecki
dba1fb9adc Revise specification for Select operation (#6488)
* Add types section and refactored input tesnsor description.

* Stylistic changes.

* Marked inputs as 'Required'.
2021-07-21 14:23:56 +03:00
Patryk Elszkowski
af2989248f update Acosh spec (#6677) 2021-07-21 06:31:37 +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
Szymon Durawa
21bf92d5c8 Update spec for MVN-1 and MVN-6. (#6554)
* Update spec for MVN-1 and MVN-6.

* Add reduction_axes attribute to MVN-1.

* Fix mean value calculation using ReduceMean.

* Correct reduction_axes attrbute name.

* Restore default value for normalize_variance and eps_mode.

* Remove dafult value for required attributes.

* Correct typeo.
2021-07-20 10:30:11 +03:00
Bartosz Lesniewski
4373b0cb7d Revise PriorBoxClustered Spec (#6539)
* Move detailed description up, add backtics to attr types

* Add backtics for range in clip attr description, remove non-existing attributes

* Adjusting the spec to review comments

* floating-point instead of floating point, remove default value for mandatory attribute
2021-07-19 06:41:35 +00:00
Katarzyna Mitrus
f1ab0b3938 GRN spec revision (#6666)
* Update detailed description

* Update attrs description

* Add Types section and Inputs Outputs description

* Update example
2021-07-16 15:15:55 +03:00
Patryk Elszkowski
39afcb2e99 use floating-point in docs (#6659)
* use `floating-point` in docs

* Get back capital letter.
2021-07-16 07:48:45 +03:00
Patryk Elszkowski
20f10a43a4 bulk change to unify **Required.** and **Optional.** (#6503) 2021-07-15 09:17:23 +02:00
Patryk Elszkowski
ca9e495e13 update FakeQuantize spec (#6608)
* update FakeQuantize spec

* remove `**Default value**: None` for required attribute
2021-07-15 08:45:37 +03:00
Patryk Elszkowski
b9d02939b3 remove **Default value**: None when **Required**: *yes* (#6638) 2021-07-14 15:00:29 +03:00
Katarzyna Mitrus
015ad868ef NormalizeL2 spec revision (#6512)
* Move and update details description

* Update Required style

* Update Particular cases description

* Update eps_mode range

* Update inputs description

* Update outputs description

* Add Types section

* Update short description

* Update examples

* Update descriptions

* Add headers to examples

* Update eps_mode attribute description

* Fix have -> has typo

* Remove default value from Required attributes
2021-07-13 06:49:30 +03:00
Szymon Durawa
baef88c8fb Cosh revise. (#6516) 2021-07-08 09:03:59 +03:00
Gabriele Galiero Casay
e63b7dc39c BatchToSpace specification refactoring (#6528)
* BatchToSpace specification refactored

* Add minor changes

 * Added \ldots to latex formula
 * Change output tensor to lower-case y
 * Added mention to reverse operation SpaceToBatch

* Corrected dots in formulas

* Enable rank greater or equal than 2 for data input and add more examples

* Minor changes in detailed description

* Improve short and detailed descriptions
2021-07-08 07:50:29 +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
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
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
Maxim Vafin
f1af26dbaf Add adaptive pool reference implementation (#6317)
* Add adaptive pool reference implementation

* Add forgotten files

* Fix codestyle

* Disable tests

* Add more tests

* Fix build

* Fix comments

* Remove CoordinateTransform usage from AdaptiveAvgPool

* Fix build

* Refactor AdaptiveMaxPool

* Fix codestyle

* Apply review feedback

* Simplify if statement
2021-07-05 08:36:27 +03:00
Ivan Tikhonov
033274c141 Deformable convolution v8: ngraph part (#6443)
* Deformable convolution: ngraph part

* fix docs

* add visitor api tests

* apply review remarks
2021-07-02 19:31:09 +03:00
Patryk Elszkowski
06013d1596 SpaceToDepth update spec (#6426)
* SpaceToDepth update spec

* fix T to be italic

* add spaces around `/`

* fix **Required.**
2021-07-02 18:22:46 +03:00
Patryk Elszkowski
de53c40578 bulk change type T to type *T* in spec (#6486)
* bulk change `type T` to `type *T*` in spec

* update all `T` which referee to type to use *T* pattern

* get back with `T` where T is dimension

* fix *T*1 -> *T1*

* Make italic types where was no formating
2021-07-02 13:51:00 +03:00
Bartosz Lesniewski
520a6bd647 Revise PriorBox Spec (#6364)
* Revise PriorBox spec

* Tex cosmetics

* use backticks for attr types, add types section

* Add missing default values for optional attributes

* Remove redundant sentences in attr descriptions, add clip to detailed description
2021-07-01 13:11:36 +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
Patryk Elszkowski
65aa58a06f update spec for DepthToSpace operation (#6315)
* Update speck

* remove ONNX link and fix type of output

* fix `block_size` description
2021-06-29 16:02:57 +03:00