Commit Graph

23 Commits

Author SHA1 Message Date
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
Tomasz Dołbniak
303c549791 nGraph copyright update for 2021 (#3832) 2021-01-13 16:43:04 +03:00
Pavel Esir
d9bd59c7a0 Evaluate, ngraph_reader check and Python nGraph API for GatherElements (#3624)
* add GatherElements evaluate to interpreter backend

* Finally successfully run on backend

* debugged non-typical cases

* added ngraph_reader tests for GatherElements

* added Python API for GatherElements

* apply_style

* corrected python api tests

* applied comments

* style-apply

* finally corrected nGraph Python API for GatherElements

* minor corrections

* style-apply

* replaced quotes

* added blank line

* corrected evaluate and disabled unit-tests for not yet supported plugins

* style-apply

* applied comments: negative tests added and additional checks in evaluate

* added bound check for axis in evaluate

* style-apply

* apply review comments

* fast correct evaluate for GatherElements

* style-apply

* revert changes in interpreter unit_test.manifest for Gather

* 🚀 optimized general solution; added separate calculation for 2D

* 🚀 applied comments

* style-apply
2021-01-11 19:52:47 +03:00
Sergey Lyubimtsev
2e6ea1e290 CMake based build for pyngraph module (#3080)
* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [nGraph] Python API should be compiled and installed via CMake (41857)

* Refactored wheel setup script to build module using CMake

* Update build instructions

* Added USE_SOURCE_PERMISSIONS to cmake install

* Adjust CMake compiler flags conditions

* fix CPack issue for CI build pipeline

* case insensitive option check

* build only python API if ngraph_DIR provided

* fix lib extension for macOS

* -fixed style (flake8)

 -added paralllel build option & description

* fix flake8 B006 check

* add ngraph_DIR & remove unsed env. variables.

* Reworked build & test instructions to make it more straightforward

* remove unused CMake arguments for setup.py

* make source dir condition more general

* Update BUILDING.md

* Update BUILDING.md

* Update BUILDING.md

* beautified instructions wording

* fix wheel build issue after sourcing setupvars

* Extend user options to build, install and develop commands

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2020-12-24 16:57:58 +03:00
Ilya Churaev
e7d121f173 Remove legacy files (licenses and some scripts) (#2952)
* Remove legacy files (licenses and some scripts)

* Removed LISENSE and install rules for licenses
2020-11-09 06:39:52 +03:00
Rafal Blaczkowski
797d35ef64 Improve ngraph python api in debug mode (#2836)
* Update MacOS machine

* Update setup.py

* Add debug statement

* Improvements

* Update ngraph/python/setup.py

Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>

* Rollback the last change

Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>
2020-10-30 11:17:58 +03:00
Maxim Vafin
cf09752a29 Add LogSoftmax-5 to ngraph (#2645) 2020-10-14 08:08:27 +03:00
Tomasz Dołbniak
51fa5ab8cb Make pybind more verbose in debug on windows (#2045)
* Make pybind more verbose in debug on windows

* Remove the NDEBUG flag everywhere

* Code complexity reduction...

* Missing colon

* And now the missing empty line...

* Reusable functions

* Now the mood of the sentence was wrong...

* Free functions instead of methods
2020-09-04 19:03:33 +03:00
Jan Iwaszkiewicz
c147f03d5f [nGraph] RTInfo refactor (#1806) 2020-08-27 15:41:21 +02:00
Jan Iwaszkiewicz
2b6b047b43 [nGraph] Create Python API support for rt_info (#1696) 2020-08-11 15:57:31 +02:00
Ilya Churaev
7a314f216a Remove JSON serializer (#1638) 2020-08-06 05:51:05 +03:00
Michał Karzyński
dbb87462f6 Change working directory in setup.py (#1624)
Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2020-08-05 12:07:04 +03:00
Jan Iwaszkiewicz
185cafb4cc [nGraph] Remove legacy Python API (1) (#1504) 2020-07-29 12:19:05 +02:00
Ewa Tusień
821a3dae32 Expose OpSets as part of nGraph PythonAPI (#1261) 2020-07-22 12:02:54 +02:00
Jan Iwaszkiewicz
db09547087 Add Input and Output class to Py API (#1284) 2020-07-15 15:32:24 +02:00
Michał Karzyński
cc23e6043a Add nGraph-ONNX tests (#1215) 2020-07-10 11:53:56 +02:00
Michał Karzyński
bd8a383560 Enable nGraph Python API unit tests using Inference Engine APIs (#1095) 2020-07-03 18:11:39 +02:00
Adam Osewski
d0be6b1d2f Dynamic attribute getters and setters. (#964) 2020-06-26 16:35:00 +02:00
Michał Karzyński
69a342ea68 Fixes for building nGraph Python API (#707) 2020-06-23 17:32:37 +02:00
Adam Osewski
491e5e9fbb [Py] Ngraph Py API TensorIterator (#718) 2020-06-22 11:40:58 +02:00
Ilya Churaev
e0cf66b31a Fixed cpack information, removed some links (#976) 2020-06-17 17:17:32 +03:00
Alexey Suhov
deb008a26f publish master branch snapshot, revision 8d31237e2c3f673cbb0f0ba110fc10f5cce1d2bb 2020-05-22 02:23:12 +03:00
Alexey Suhov
f30dcc218c publish master branch snapshot, revision 9df5eb1f84e13a35720a918f88324561222ab114 2020-05-20 01:13:06 +03:00