Commit Graph

42 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Szymon Durawa
baef88c8fb Cosh revise. (#6516) 2021-07-08 09:03:59 +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
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
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
Gabriele Galiero Casay
9dd0531599 Negative operation specification refactoring (#6204)
* update spec

* update supported types in spec

* Minor changes in spec

Co-authored-by: pszmel <piotr.szmelczynski@intel.com>
2021-06-18 09:20:40 +03:00
Piotr Szmelczynski
94352874a5 Revise ceiling (#6124)
* update spec

* add RTTI macro

* clean backend test file

* create visitor test

* remove Ceiling cpu functional tests from skip_test_config

* fix skip_test_config conflict

* Add type_prop test for Ceiling.

* Fix failing ceiling type_prop tests.

* Replace unary_ops.cpp with single test op files.

* Enable integer tests.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-06-18 05:50:02 +03:00
Bartek Szmelczynski
084aa4e591 Revise log (#6061)
* refactor ngraph log class, add type_prop tests

* udpate inputs, outputs decscription in spec

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-06-10 19:35:52 +03:00
Piotr Szmelczynski
4b860890ed Revise floor (#5618)
* create type_prop tests

* add visitors test

* fix bug in visitor test

* add RTTI macro

* fix bug in visitors test

* add newline

* update spec

* update spec

* update RTTI definition

* move RTTI definitioion to the top of he file

* Remove broadcast from attribute tests.

* Add Floor-1 to summarize.py report.

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-05-21 07:55:26 +03:00
Patryk Elszkowski
dc49035eaa update tanh v1 spec (#5413)
* update tanh v1 spec

* Apply review suggestions

* add rounding info

* Move Tanh to activation functions

* reorganize spec and add rounding rule for integers

* back to arithemtic functions

* Update `short description` to adjust with new EW description template

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-05-05 14:27:51 +03:00
Katarzyna Mitrus
cec1e4ae1c Remove new line symbol (#5459) 2021-04-30 09:53:32 +03:00
Katarzyna Mitrus
8e87087acf [Spec] Revision of Sqrt op specification (#5369)
* Update attributes info

* Update math form to render sqrt symbol

* Update input description

* Update output description

* Add new example

* Update description and move math formula

* Style refactor

* Add info about integer rounding and negative values

* Update examples with integer cases
2021-04-28 20:18:12 +03:00
Bartosz Sledz
4337a2f235 Fix specification of result sign (#5188) 2021-04-12 18:04:33 +03:00
Gabriele Galiero Casay
d3933bd316 Selu specification refactoring (#5039)
* Review spec of Selu operation

* Fix path for Selu op in opset files

* Remove unnecessary line in example

* Address review comments related to wording
2021-03-31 18:42:25 +03:00
Patryk Elszkowski
18dd574864 Update spec for DIVIDE operation. (#4536)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-12 07:05:18 +03:00
Patryk Elszkowski
a0df0c98ea Update spec for subtract (#4692)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-11 09:36:16 +03:00
Patryk Elszkowski
98cc6e634a add spec - cleanup (#4715)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-11 07:12:15 +03:00
Patryk Elszkowski
d7e6e47c7c Update spec for multiply operation (#4693)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-03-10 19:11:56 +03:00
Jozef Daniecki
f8ccc4f39e FloorMod operation specification refactoring. (#4569)
* FloorMod operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

* Add comment about division by zero.

* Fix division by zero sentence.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-03-10 09:58:58 +03:00
Jozef Daniecki
4791f3bfd7 SquaredDifference operation specification refactoring. (#4567)
* SquaredDifference operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-03-10 09:57:55 +03:00
Jozef Daniecki
dcc8215784 Maximum operation specification refactoring. (#4572)
* Maximum operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-03-10 09:57:38 +03:00
Jozef Daniecki
f41ca93509 Minimum operation specification refactoring. (#4571)
* Minimum operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-03-10 09:57:20 +03:00
Jozef Daniecki
b432d0890a Power operation specification refactoring. (#4566)
* Power operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

* Fix mathematical formula.

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2021-03-10 09:57:06 +03:00
Szymon Durawa
d86eab4d84 Mod operation specification refactoring. (#4703)
* Mod operation specification refactoring.

* Add dummy broadcast_rules.md.

* Minor fixes, e.g. capitalize operation names, typos.

* Add comment about division by zero.

* Division by zero update.

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-03-09 22:59:32 +03:00
Szymon Durawa
3e22f33224 Update spec for ADD operation. (#4366)
* Update spec for ADD operation.

* Change back quote for attribute name and value.

* Update link for auto_broadcast attribute.

* Move detailed description section, add suto_broadcast attribite to examples.

* Remove github link in numpy attribute description and replace it with local link.

* Add brodcast_rules.md for specific broadcast rules.

* Add new line at the end of broadcast_rules.md, modify font for add inputs.

* Change link for Broadcast_1.md

* Add description of broadcast in broadcast_rules.md

* Correct output shape description.

* Add bidirectional broadcast description and  new examples.

* Add description for auto_broadcast types: None and PDPD.

* Add examples for pdpd and bidirectional broadcasts, add pdpd attributte for Add, modify Broadcast ops to refer broadcast_rules file.

* Duplicated 'openvino_docs_ops_broadcast_rules' label change.

* Add example with scalar for bidiretional broadcast.

* Add new lines for examples.
2021-03-09 12:26:08 +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
Evgeny Lazarev
0a52702e6a Removed confusing information about required/optional output of the operation. The output exists always but it may be not connected to anywhere. (#3423) 2020-11-30 20:02:09 +03:00
Roman Donchenko
a428c469ce Fix spelling errors in samples and documentation (#2795)
* Fix spelling errors in samples

* Fix spelling errors in the documentation
2020-11-11 15:35:39 +03:00
Anton Chetverikov
8062f20c15 Add specification for Round operation (#2238)
* Add specification for Round operation

* Create opset5.md file

* Resolve review comments

* Remove useless formula section from specification

* Update specification

* Update Round specification

* Resolve review comments
2020-10-07 18:33:43 +03:00
Evgeny Lazarev
93074590de Updated operations specification documents (2021.2) (#2270)
* Updated documentation structure and remove incorrect added files for Acosh-1, Asinh-1 and Atanh-1

* Fixed broken links
2020-09-18 08:16:14 +03:00
Nikolay Tyukaev
ef45b5da8d Doc Migration (master) (#1377)
* Doc Migration from Gitlab (#1289)

* doc migration

* fix

* Update FakeQuantize_1.md

* Update performance_benchmarks.md

* Updates graphs for FPGA

* Update performance_benchmarks.md

* Change DL Workbench structure (#1)

* Changed DL Workbench structure

* Fixed tags

* fixes

* Update ie_docs.xml

* Update performance_benchmarks_faq.md

* Fixes in DL Workbench layout

* Fixes for CVS-31290

* [DL Workbench] Minor correction

* Fix for CVS-30955

* Added nGraph deprecation notice as requested by Zoe

* fix broken links in api doxy layouts

* CVS-31131 fixes

* Additional fixes

* Fixed POT TOC

* Update PAC_Configure.md

PAC DCP 1.2.1 install guide.

* Update inference_engine_intro.md

* fix broken link

* Update opset.md

* fix

* added opset4 to layout

* added new opsets to layout, set labels for them

* Update VisionAcceleratorFPGA_Configure.md

Updated from 2020.3 to 2020.4

Co-authored-by: domi2000 <domi2000@users.noreply.github.com>
2020-07-20 17:36:08 +03:00
iliya mironov
95677afe29 Move arithmetics spec from v1 to v4 spec docs (#1230)
* Move atanh asinh acosh to opset4

* Update opset3 tables
2020-07-09 11:28:47 +03:00
Andrey Zaytsev
d67371617a Added opset docs (#992) 2020-06-19 14:39:57 +03:00