Commit Graph

167 Commits

Author SHA1 Message Date
Bartosz Lesniewski
4fa55d581a Refactored nGraph operator tests to use TestCase (#1623) 2020-08-05 16:27:18 +02:00
Mateusz Bencer
0100a16228 Reference implementation to Split op (#1526)
* first version

* fixed lower_bounds

* Added unit test

* Added support of negative axis

* Added more tests

* Slice refactor in order to reduce binary size

* remvoed unused headers

* added eveluate method to split

* review remarks. part 1

* review remakrs. part 2

* review remarks

* sync with master
2020-08-05 14:32:14 +03:00
Rafal Blaczkowski
4f96ea684a Update xfail status of onnx python tests (#1639) 2020-08-05 12:20:07 +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
Ilya Churaev
850665d992 Enable NGRAPH_DEPRECATED (#1617)
* Enable NGRAPH_DEPRECATED

* Try to fix Windows

* Added NGRAPH_SUPPRESS_DEPRECATED_END for headers

* Removed tests on downgrade/upgrade passes
2020-08-05 11:13:05 +03:00
Ilya Churaev
3ce87f5487 Mark evaluate method as constant (#1628) 2020-08-05 08:39:00 +03:00
Nadezhda Ageeva
7c78b0d03d [PYTHON][nGraph] add get_type_name for element type (#1513) 2020-08-04 19:01:12 +03:00
Rafal Blaczkowski
d14d09e796 Update ONNX Python tests (#1514) 2020-08-04 12:26:32 +02:00
Gabriele Galiero Casay
19f798b084 Ngraph unit tests refactoring: part 2 (#1518) 2020-08-04 11:56:46 +02:00
Ivan Tikhonov
80b6bf28c2 Align with the specification SpaceToBatch, BatchToSpace ops (#1140)
* Aligned SpaceToBatch/BatchToSpace with the spec, converted from fused_op to op

* Implemented transformation to decompose STB/BTS

* Added unit tests

* Added new mode (INTERPRETER_TRANSFOMATIONS) for functional tests
2020-08-04 12:35:24 +03:00
Jan Iwaszkiewicz
136dccf905 [nGraph] Public Py API to get function from cnnnetwork (#1567) 2020-08-04 09:39:37 +02:00
Ilya Churaev
e4b411f027 Removed constant folding for Tile op (#1595) 2020-08-04 07:42:23 +03:00
Ewa Tusień
86fb108b00 Remove reverse op from pyAPI. (#1538) 2020-08-04 06:39:29 +03:00
Sergey Lyalin
a069e39906 Hierarchical extension to nGraph RTTI (#1245)
* RTTI base for ngraph::Node; cherry-pick from another branch, draft

* Added comments, moved code, switched to custom RTTI-based version of is_type

* Move rtti definitions in ngraph op class to the beginning of each class definition as a preparation for the next replacement

* Migrate part of operations to new RTTI

* Migrate GroupConvolution and Concat to new RTTI

* Apply code style for ngraph part

* Rename RTTI_DECLARATION/DEFINITION to NGRAPH_RTTI_DECLARATION/DEFINITION

* Reverted accidentally updated version of mkldnn

* TMP: rewrite RTTI back to constexprions as an attempt to fix static objects initialization order issue

* Apply ngraph code style

* Finalize move back to constexpr for RTTI

* Applied code-style

* Fix in fast algorithm in GraphRewrite, add new tests for this and other cases

* Make parent optional parameter for NGRAPH_RTTI_DECLARATION and remove Node::type_info; remove ability to have Node as a parent for type_info

* Try to resolve compilation error on Windows

* The next attempt to fix Windows build: re-introduce get_type_info_static

* Removed file that was removed in master and kept in this branch by mistake

* Next attempt to fix Windows build: externConstexpr

* Attempt to fix win build: extra public (suspect icc bug), remove get_type_info_static as useless.

* Next attempt to fix Windows: proxy const and constexpr

* Fixed constexpr

* Next attmpts: move get_type_info to cpp file

* Code stype fix

* Re-implemented RTTI without use of constexpr; run-time initialization is used; removed global definitions to avoid issues with order of static objects initialization

* Remove already unncecessary compiler flag for Windows

* get_type_info_static initializes static local constant with type_info that is used for CLASS::type_info and CLASS::get_type_info

* Rewrite commens for NGRAPH_RTTI_... macros, remove not used header
2020-08-04 06:35:58 +03:00
Ilya Churaev
478d0368d0 Removed reshape and transpose constant folding passes (#1598)
* Removed template code from reshape implementation

* Removed constant foldyng for transpose and dyn reshape
2020-08-04 05:44:25 +03:00
Gleb Kazantaev
c518667e0a ngraph::pass::ConvertPrecision transformation (#1312)
* In this PR I'll add ngraph::pass::ConvertPrecision transformation and change only CPU Plugin to decrease number of changes. Other plugins will be updated in separate PR.

* This PR also includes changes for TI body transformations. We need to call the same sequence of transformations including ConvertPrecision for TI body.
2020-08-03 22:21:38 +03:00
Evgenya Stepyreva
45d04f5f55 [ nG GRUCell ] Allowed dynamic input shape (#1606) 2020-08-03 19:55:22 +03:00
Ilya Churaev
d791d295aa Use clone_function instead of specialize_function (#1523)
* Try to use clone_function instead of specialize_function

* Try to fix stress tests

* Remove redundant specialize_function

* Fixed TI clone

* Removed redundant code

* Uncomment threading tests

* Fixed docs

* copy function friendly name too

* Fixed copy rt_info

* Fixed comments
2020-08-03 18:23:02 +03:00
Tomasz Socha
91c71b81e0 [nG][Python]Make model runner compatibile with python 3.5 (#1578) 2020-08-03 12:56:59 +02:00
Vladislav Volkov
d946f6cfde Common library to trace using Intel ITT and new performance counters (#1479) 2020-08-03 12:53:00 +03:00
Adam Osewski
1c22023a8e Fix typo. (#1571) 2020-07-31 15:05:53 +03:00
Ilya Churaev
41da44ec07 Removed v0 convolution and group convolution (#1512) 2020-07-31 13:00:28 +03:00
Roman Kazantsev
c56f024630 Fix for CTCLoss in NGraph (#1563)
Blank index is optional input and must be handled appropriately

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-07-31 11:57:29 +03:00
Jan Iwaszkiewicz
43652498c7 [nGraph] Py API get/set partial shape of parameter (#1560) 2020-07-31 10:14:39 +02:00
Ilya Churaev
cf4dedbb92 Removed classes for DistributedInterface, State and Send, Resv v0 operations (#1549)
* Removed State

* Removed Recv and Send operations

* Remoced distributed interface
2020-07-30 16:27:21 +03:00
Ilya Churaev
ecb1344b4b Removed v0 builders (#1528) 2020-07-30 16:26:31 +03:00
Ilya Churaev
1a727a597e Changed visibility of nGraph node methods (#1544) 2020-07-30 16:25:32 +03:00
Adam Osewski
fc5d8c75d3 Fix false positives in ModelRunner. (#1541) 2020-07-30 13:26:19 +02:00
Jan Iwaszkiewicz
0f62031991 [nGraph] Matching names of functions (#1524) 2020-07-30 13:25:42 +02:00
Jozef Daniecki
0c3da56ae1 nGraph unit tests refactoring (#1495) 2020-07-30 10:04:22 +02:00
Katarzyna Mitrus
f34511642a NodeVector -> OutputVector replacement (#1272) 2020-07-29 17:18:56 +02:00
Szymon Durawa
aef6016298 Refactor tests to use TestCase class (#1517) 2020-07-29 16:08:19 +02:00
Jan Iwaszkiewicz
13ae51930b Fix node name tests (#1507) 2020-07-29 12:27:30 +02:00
Jan Iwaszkiewicz
185cafb4cc [nGraph] Remove legacy Python API (1) (#1504) 2020-07-29 12:19:05 +02:00
Adam Osewski
3a87653483 ONNX Model runner (#1415) 2020-07-29 09:34:35 +02:00
Ilya Churaev
5b918810d0 Removed redundant methods from function and util (#1505) 2020-07-29 06:19:45 +03:00
Adam Osewski
2a96917e2a Treat 1d single-element tensors as scalars. (#1498) 2020-07-28 14:01:13 +02:00
Jan Iwaszkiewicz
12457ca85b Add atanh to onnx importer opset4 (#1425) 2020-07-28 10:58:53 +02:00
Ilya Churaev
534fe35c0a Remove old transformation passes (#1463) 2020-07-28 08:54:50 +03:00
Ilya Churaev
af3a0900b0 Removed v0 operations from AlgebraicSimplufication pass (#1481)
* Removed v0 operations from AlgebraicSimplufication pass

* Fixed tests
2020-07-28 05:48:12 +03:00
Ilya Churaev
ffcb7fab2d Fixed incorrect logic in detection of result shape for convolution (#1444)
* Fixed incorrect logic in detection of result shape for convolution

* Added test
2020-07-28 05:47:43 +03:00
Gleb Kazantaev
bd42f09e98 nGraph Transformations refactoring (#931)
This PR introduces next changes:
1. Transformations *_tbl.hpp files were replaced with direct registration in cpp files.
2. Plugins use pass::Manager to call conversion passes.
3. Transformations callback was moved to PassBase class as there is no more need to keep it in separate class
4. All pattern based transformations must be inherited from MatcherPass class. GraphRewrite class will be used only for matchers registration and execution on function.
MatcherPass class adds new features to pattern-based transformations approach:
* Allows to run matcher pass on a single node.
* Operations that were created inside transformation callback can be added to execution list to be available for pattern matching within single GraphRewrite.
5. GraphRewrite MatchClosure was replaced with MatcherPass. So all matchers will be registered as a MatcherPass.
6. Added pass::Manager::clear_state() method to avoid dependency with nodes that no longer belongs to function after replacement.
7.  Some representative transformations were updated to use MatcherPass as an example.
8.  Mul->Add sequence fusion transformation was replaced with LinOpSequenceFusion.
9. Pattern and callback registration code was moved to class c-tors (will be finished for remaining passes in other PR) .
10. Updated pass::Manager to get pass names only when NGRAPH_PROFILE_PASS_ENABLE enabled.
11. Moving towards removing PassProperty.
12. Added ngraph::pattern::wrap_type<T>(inputs, pred) to simplify pattern creation.
13. GraphRewrite was updated to execute MatcherPass more efficient.
2020-07-27 19:47:37 +03:00
Mateusz Bencer
5ff59eb711 Add support (limited, based on Interpolate-1) to Resize-11 ONNX op (#1364)
* Implementation of Resize-11

* Added support to sizes input

* Add tests to sizes input

* Added missing comment

* fixed tests

* fixed tests

* Fixed test. part 2.

* review remaks. part 1.

* review remarks. part 2.

Co-authored-by: Tomasz Socha <tomasz.socha@intel.com>

* Added more tests

Co-authored-by: Tomasz Socha <tomasz.socha@intel.com>
2020-07-27 16:42:00 +03:00
Irina Efode
3632dde431 [IE NGRAPH] Remove default values in InterpolateAttr structure (#1484) 2020-07-27 14:03:16 +03:00
Mateusz Tabaka
2ac35247ea Add tests for ArgMin/ArgMax with float inputs (#1429) 2020-07-27 12:40:27 +02:00
Ilya Churaev
7827490340 Removed v0 CropAndResize and EmbeddingLoop operations (#1450) 2020-07-27 12:34:20 +03:00
Irina Efode
0560b61cbd [IE TESTS] Add Interpolate single layer test (#1456) 2020-07-27 11:45:19 +03:00
Ilya Churaev
3bbdda6b48 Removed BroadcastDistributed (#1430) 2020-07-27 10:49:56 +03:00
iliya mironov
f865945448 Add acosh asinh atanh to opset3 ngraph (#1278)
* Add acosh, asinh and atanh to opset4
2020-07-23 21:40:04 +03:00
Gabriele Galiero Casay
2936ea8800 Add asinh to onnx importer opset4 (#1436) 2020-07-23 17:03:06 +02:00