Commit Graph

1022 Commits

Author SHA1 Message Date
Mateusz Bencer
a63c8d9537
Optimize Concat operation (#1812)
* 1d case optimization

* code refactor

* concat optimization

* removed using template for concat

* unit tests to concat constant folding

* synchro with current master
2020-08-18 18:28:57 +03:00
Gleb Kazantaev
8c5262f864
Convert Pad to GroupConvolution transformation (#1826)
* Added ConvertPadToConvolution pass

* Removed NasNet transformation from MO

* Renamed Conv to GroupConv; Added tests

* Fixed typo; Added RTTI
2020-08-18 17:40:45 +03:00
Ilya Lavrenov
579cec716e
Ngraph: hide itt.hpp to src (#1834)
* Use proper include for log.hpp

* Hide itt.hpp to src folder

* Removed CodeWriter
2020-08-18 16:50:37 +03:00
Anna Alberska
ccfa2da9bd
[GNA] Implement ImportNetwork from stream (#1743)
* add ImportNetwork from stream

* add test for importing network from stream
2020-08-18 16:41:46 +03:00
Denis Orlov
494e9d201b
Merge changes from 2020.4.0.1 (#1809)
* [GNA] Propagate QoS timeout to the calling app (#1188)

* [GNA] Support timeout value set in Wait (#1499)

* [GNA] stored request id for completed sync infer request in order to get status later using wait() (#1458)

* stored request id for completed async infer request in order to get it's status later

* preserved status not started for multiple sequential calls to wait()

Co-authored-by: Denis Orlov <denis.orlov@intel.com>

* [GNA] Fix callbacks (#1607)

Co-authored-by: Eugene Smirnov <eugene.smirnov@intel.com>
2020-08-18 16:11:10 +03:00
Ilya Churaev
04475bc1b2
Add arithmetic operators for bfloat16 (#1831) 2020-08-18 13:49:30 +03:00
Roman Kazantsev
b01112bcbc
Fix a specification for CTCLoss operation (#1786) 2020-08-18 13:47:59 +03:00
Tomasz Dołbniak
1cb1f13eaa
v1::Pad evaluator (#1771)
* v1::Pad reference implementation

* ut fix: pad_negative_exterior_1d

* ut fix: pad_negative_exterior_1d_check_limits & pad_edge_1d

* Code formatting

* ut fix: pad_edge_1d_top_neg & pad_edge_1d_top_neg_bigger_than_tensor

* More Pad UT fixes

* Pad UT fixes: REFLECT mode

* Fix all Pad UTs

* Switch Pad evaluation in INT backend

* Non-template solution to v1::Pad::evaluate

* Always create v1::Pad with 4 inputs

* VS compilation error fix

* Python test fix

* Remove the v0::Pad constant folding pass

* Some extra checks in v1::Pad evaluator

* Code formatting

* Remove an obsolete CF test
2020-08-18 13:43:54 +03:00
Mateusz Bencer
ea80bc3d6f
Add ONNX Round op (#1605) 2020-08-18 12:10:23 +02:00
Gladilov, Gleb
630f7dfb99
[IE][VPU]: Reverts nGraph TI Unrolling for VPU (#1824) 2020-08-18 12:09:06 +03:00
Evgeny Latkin
aff0a8e5ad
[IE][VPU]: Fixed MX firmware memory type patching (#1825)
Fixing Myriad X firmware loader after RTEMS 5 related changes merged into MDK
* Fixed MX firmware memory type patching
* Update firmware
* disable myriadMultipleGraphsTests_nightly

Co-authored-by: Chekhonin Andrey <andrey.chekhonin@intel.com>
2020-08-18 12:05:18 +03:00
Gleb Kazantaev
af6f99525a
ConvertPrecision for element::boolean (#1772)
* Added bool to u8 conversion

* Added opset1::ShapeOf handler

* Added ReduceLogicalAnd/Or support in ConvertPrecision pass

* Moved static map inside function; Updated callbacks

* Removed header

* Fixed tyle relaxed for cases when the same output consumes by multiple inputs in the same operation; added tests; fixed input types setting for already created type relaxed operations
2020-08-18 11:10:24 +03:00
Anna Likholat
812cd1076b
Java bindings (#506)
* java bindings added

* bulid saples alongside with IE build

* fixes

* fixes

* fixed comments

* fixes
2020-08-18 08:38:48 +03:00
Ilya Lavrenov
57ab1e74a4
Removed NGRAPH_API from reference library (#1821) 2020-08-17 22:46:12 +03:00
Tomasz Socha
5e57bdc429
[FIX] Fix data layout for reshaped network (#1748)
* [FIX] Fix data layout for reshaped network

* [PATCH] Don't change compatible layouts

* Add UT for reshaped network

* FIX no. 1
2020-08-17 22:14:39 +03:00
Ilya Churaev
f17262e05f
Add static library with nGraph reference implementations (#1810)
* Removed reference implementations from public API

* Remove coordinate_transform from public API

* Introduced static library with reference implementations
2020-08-17 19:43:11 +03:00
Roman Kazantsev
753150642e
Extend MO for operation CTCLoss and partly refactor CTCGreedyDecoder (#588)
* Extend MO for operation CTCLoss

* Change sequence length format to a mask format

* Add fixes after first-round review

* Add fixes after the second-round review

* Fixing CTCLossPlusCTCGreedyDecoder transformation
2020-08-17 19:19:59 +03:00
Maksim Doronin
66aa119b11
[IE][VPU]: Refactor vpu configs (#1334)
* [IE][VPU]: Refactor vpu configs

* [IE][VPU][GT]: Refactor vpu configs usage in GT

* [IE][VPU]: Refactor vpu configs usage in myriad plugin

* [IE][VPU]: Refactor vpu configs usage in tests

* [IE][VPU]: Refactor vpu configs usage in deprecated_tests

* [IE][VPU]: Refactor vpu configs usage in tools

* [IE][VPU]: Use hddl metric vars instead of macros

* [IE][VPU]: style fixes

* [IE][VPU]: Replace MYRIAD_FORCE_RESET with MYRIAD_ENABLE_FORCE_RESET

* [IE][VPU]: Resolve confilcts with MYRIAD_TILING_CMX_LIMIT_KB

* [IE][VPU]: Remove MYRIAD_PLATFORM from tools

* [IE][VPU]: Fix DISABLE_REORDER config in StridedSlice

* [IE][VPU]: Redesign config headers hierarchy

* [IE][VPU]: Clarify comments related to vpu configs

* [IE][VPU]: Leave default values of deprecated configs

* [IE][VPU]: Revert beh tests on VPU_MYRIAD_PLATFORM

* [IE][VPU]: Revert beh tests with deprecated configs

* [IE][VPU]: Resolve conflicts

* [IE][VPU]: Revert opencv dependency
2020-08-17 17:30:38 +03:00
Evgeny Lazarev
125a462400
Enable ReduceL1 and ReduceL2 operations (#1799)
* Initial version of ReduceL1, ReduceL2 and ReduceLp enabling in the MO

* Added operations ReduceL1 and ReduceL2 to nGraph

* Removed ReduceLp. Added ReduceL1 and ReduceL2

* Separated specification of ReduceLp into ReduceL1 and ReduceL2

* Updated ReduceL1 and ReduceL2 specification

* Fixed ReduceL1 and ReduceL2 type prop tests

* Implemented nGraph transformation to decompose ReduceL1 and ReduceL2. Disabled them for CPU and GPU plugins

* Updated supported framework layers

* Added unit tests for ReduceL1 and ReduceL2 reference implementation

* Fixed ReduceXXX operations reference implementation by adding support for a new parameter 'keep_dims'

* Fixed constant folding for v0::Any

* Added ReduceL1 and ReduceL2 to Python API

* Implemented ReduceL1 and ReduceL2 decomposition tests and fixed ReduceL2 decomposition

* Added specific creator for ReduceXXX operations instead of NodeBuilders

* Fixed conversion ReduceXXX to CNNLayer

* Fixed parser for ReduceLogicalXXX operations
2020-08-17 16:32:53 +03:00
Mikhail Letavin
7c9815b4c1
[IE CLDNN] Export runtime graph as nGraph function (#1684) 2020-08-17 16:27:33 +03:00
Gleb Kazantaev
aa35c59c5f
FGTT for CF (#1792)
* Added FGTT for ConstantFolding

* Added test for CF disabling
2020-08-17 15:39:58 +03:00
Maxim Vafin
d52bfb5149
Fix problem with renaming outputs from network (#1546) 2020-08-17 14:38:41 +03:00
Vladimir Paramuzov
8db6eeec67
[IE CLDNN] All input layouts support in ref pooling (#1782) 2020-08-17 14:34:49 +03:00
Maxim Andronov
5d73859255
[CPU] fix conv + concat case and add tests (#1747) 2020-08-17 14:25:53 +03:00
Ilya Churaev
6c98590bcd
Removed template headers for Fused Ops (#1780) 2020-08-17 13:37:00 +03:00
Anastasia Kuporosova
347926c436
[Python API] Deprecate IENetLayer class (#1731)
* [Python API] Deprecate IENetLayer class

* update samples

* undo changes in samples
2020-08-17 12:41:54 +03:00
Vladimir Paramuzov
be402cc6cf
[IE CLDNN] Set arguments once (#1699) 2020-08-17 12:39:30 +03:00
Mateusz Bencer
73fc659f6d
Add reference implementation to VariadicSplit (#1698)
* implementation of variadic split ref impl

* Added tests

* added unit tests

* refactor

* review remarks

* fixed ie tests
2020-08-17 11:13:06 +03:00
Evgeny Latkin
b56b243d7a
[IE][VPU][GT]: fix pool 3d to 2d reduction (#1760)
* Fix minor error in pooling 3D to 2D conversion
2020-08-17 11:02:00 +03:00
Ilya Znamenskiy
109da438c4
[IE CLDNN] Gemm floating point unit-tests fix (#1797) 2020-08-17 10:09:18 +03:00
Sergey Shlyapnikov
ddfdcefc5c
[IE CLDNN] Fix for DepthToSpace fusing into convolution (#1724) 2020-08-17 09:56:23 +03:00
Nikolay Shchegolev
c9251687c9
[NGraph] CTCLoss reference implementation. (#1453) 2020-08-17 06:10:51 +03:00
Ilya Churaev
4270153ad2
Remove nGraph layout (#1763) 2020-08-17 06:05:08 +03:00
Pavel Esir
4302e2c120
add preliminary support of Proposal-4 in nGraph (#1448)
renamed logits -> bbox_deltas

updated ngraph unittests for Proposal

removed validate_and_infer_types Proposal-4

removed validate_and_infer_types Proposal-4

changed validate_and_infer_types in parent class of Proposal

removed get_output_size

successfully inferred Proposal on SSH and Faster-RCNN

added unittests for Proposal-4

added unittests for Proposal-4

added unittests for Proposal-4

returned back default namespace for Proposal

reduced number of outputs in v0::Proposal

correct conversion of Proposal-4 -> propodal_ie with 2 outputs

removed creator for proposal v0

removed converter for proposal v0

added Proposal-4 to MO

removed `for_deformable` attribute

added Proposal-4 to MO and nGraph Python API

removed typo in Proposal-4 specification

style corrections

style corrections and removed some redundant code

rename proposal Python api test

removed 'attrs' context from visitor

returned back AttrVisitor to check if passes OpenVINO ONNX pipeline

Should pass OpenVINO ONNX pipeline (returned back AttrVisitor just to check)

python api for Proposal-4 works ok

(style correction) python api for Proposal-4 works ok

parametrized proposal_ie some other corrections

removed 'attrs.' context from nGraph Python API tests for Proposal

minor corrections in replacer proposal->proposal_ie

corrected Python API OpenVINO-ONNX tests should pass

Improved workaround for AttributeVisitor for Proposal

Add additional check of im_info tensor shape to Proposal node in MKLDNNPlugin

😠 removed 4 extra spaces from test_dyn_attributes.py to match The Style

added new nGraph RTTI declarations, removed throwing exception in transformation

added new nGraph RTTI declarations, removed throwing exception in transformation, corrected exception in MKLDNNplugin

corrected im_info size checking in Proposal node of MKLDNNPlugin
2020-08-16 15:49:49 +03:00
Anton Pankratv
bfedee88b2
Added split test into template plugin (#1669)
* Added split test into template plugin

* Fixed split test

* Fixed test parameters style
2020-08-15 14:44:13 +03:00
Alexander Zhogov
f01a321bba
Azure CI: Pipeline improvements (#1790)
* Azure CI: Pipeline improvements

* Fix checkout

* Fix path

* Fix "Install IncrediBuild"

* Add "submodules: recursive"

* Fix test run

* Fix work dir

* Fix issue

* Increase timeout
2020-08-15 01:31:34 +03:00
Anastasiya Ageeva
7ee14de157
Added OpenVINO Get Started Guide for Windows (#1631) 2020-08-14 18:47:58 +03:00
Gleb Kazantaev
09500905b7
Removed deprecated MulAddFusion pass (#1789) 2020-08-14 18:35:11 +03:00
Andrew Bakalin
0d35179234
[IE][VPU][GT]: Add pass for marking fast stages (#1579)
It was discovered that it is sometimes useful to mark fast stages (e.g. stages that process less than 100 elements) in order to be able to parse them from final performance report and estimate its contribution into performance.
* Added pass for marking fast stages
* Introduced unit tests
2020-08-14 18:10:57 +03:00
Alexander Chaiko
5b9141058c
[IE CLDNN] Disable non-performant fp32 batches FC layer (#1737) 2020-08-14 16:02:37 +03:00
Mikhail Letavin
2bdb658ca9
[IE CLDNN] dp4a check that works both with old and new drivers (#1766) 2020-08-14 14:50:33 +03:00
Gleb Kazantaev
983e2a922f
opset4 Convolution/GroupConvolution -> Multiply fusion (#1754)
* Added new predicates for smart pattern matching

* Added ConvMul and GroupConvMul fusion passes based on opset4; Added CPU functional tests for comparing fusion accuracy

* Improved ConvMultiply fusion to support scalars; Added positive and negative tests

* Added ConvolutionBackprop/GrouConvolutionBackprop Multiply fusion; Added functional tests
2020-08-14 13:47:02 +03:00
Ilya Lavrenov
a4dcfed1a9
Simplified plugin interfaces (#1745)
* Simplified plugin interface

* Allow not implemented

* Fixes

* Fixed CPU plugin tests

* Fixed tests dependencies

* Fixes

* Fixed GPU plugin compilation

* Renamed plugin

* Fixes

* Removed tests for plugin base

* Fix2

* Fix 2

* Define a macro to define plugin creation function

* Clean-up

* Fixed OSX build

* Fixed CentOS

* Fixed exception catch / throw

* Fixed clang issue

* Fixed python tests on macOsx
2020-08-14 12:11:54 +03:00
iliya mironov
0cc63cbb05
Add asinh acosh atanh to python api (#1488)
* Add asinh acosh atanh to python api
2020-08-14 10:07:58 +03:00
Ilya Churaev
d8133824b3
Deprecate FusedOp class (#1758)
* Deprecate FusedOps

* Try to fix windows

* Added temp headers
2020-08-14 06:27:58 +03:00
Alexander Zhogov
ea5bfaf8d6
Azure CI: Add IncrediBuild option: /MaxCPUS=40 (#1779)
* Azure CI: Add IncrediBuild options: /ShowTime /StopOnErrors /MaxCPUS=62

* set 48 cores

* Remove /StopOnErrors

* Set 40 cores
2020-08-14 00:55:34 +03:00
Ilya Lavrenov
a8842ec32e
Updated mock interfaces in tests (#1762)
* Updated mock interfaces in tests

* Added mock_engine dependency
2020-08-13 20:17:30 +03:00
Jan Iwaszkiewicz
680cdacc11
[nGraph] Add Manager to Py API (#1533)
* Added test

* working ManagerWrapper

* Clean-up in ManagerWrapper

* worksave

* fixed building error

* Finished test of constant folding

* remove unused param

* Added get_vector function

* clean up
2020-08-13 19:56:59 +03:00
Alexander Peskov
7c921b8b45
[CPU] Add explicit storage for MemoryNode (#895) 2020-08-13 19:06:20 +03:00
Sergey Lyalin
9a62e00674
TypeRelaxed implementation (#1561)
* 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

* TypeRelaxed template class implementation and necessary changes in ngraph + tests.

* 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

* Removed externConstexpr flag and removed TRANSFOMRATIONS_API for TypeRelaxed

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

* Removed not needed debug output and useless comments

* Implemented better copy ctor for Node

* Fixed VisualizeTree issue for TypeRelaxed: stopped using < and > in type_info::name

* Better comments and names for methods

* Remove unused include

* Remove commented line

* Workaround for legacy conversion that uses Node::get_type_info().name as a type for the resulting CNNLayer leading to incorrect types for TypeRelaxed-based operations and then to fail in plugins

* Fixed typos, explicit ctor for TypeRelaxedBase, explanation for the need of get_overridden_output_type

* Fix typo

* Fixed issue with non-static name in type definition for TypeRelaxed and fixed WrapType to make it compatible with hierarchical relations between types

* Reverted default ctor for Output and reverted ability to reduce number of outputs for a Node; syntactically better debug message for a Node

* Cover methods of TypeRelaxedBase by tests

* Apply code-style
2020-08-13 18:45:37 +03:00