Commit Graph

2259 Commits

Author SHA1 Message Date
Vitaliy Urusovskij
1e858830e2
Change json.loads to json.load for --db_metadata (#3871) 2021-01-19 18:33:00 +03:00
Maksim Kutakov
21e17dad4f
[IE TESTS][CPU] I8 and U8 precisions was enabled in the reverse sequence single layer test. (#3722) 2021-01-19 17:04:12 +03:00
Tomasz Jankowski
35384a63a6
[nGraph][ONNX] Extend ONNX Importer for operation "GatherElements-6" (#3822) 2021-01-19 14:42:24 +01:00
Ilya Lavrenov
7e54cdba15
Fixed cmake 'message' for multiple arguments (#3901) 2021-01-19 15:35:31 +03:00
Szymon Durawa
4f5230bb03
Visitor api ti serialization (#3777)
* Add on_adapter(Function) for serialization.

* Add port_map and back_edges serialization.

* Add 2  unit tests for TI serialization.

* Convert lambda expression into function pointer.

* Add single layer test for tensor iterator.

* Add limitation for file name length during serialization.

* Add file name length limitation for Serialize().

* Add WA for LSTMCell v0 in serialize class, new test class for TI serialization with dynamic weights, add bin path to SerializationParams, replace call to ngfunction_2_irv10 with visitor.on_attribute().

* Remove hacks for TI from ngfunction_2_irv10(), validate buffers in port_map.

* Changed year in new added test files.

* Add check for version of LSTMv0 WA, add assert for model read from file.

* Remove append_copy for xml Function, changed comparison for LSTMvo WA.

* Update second WA for LSTMCell v0 with version check.

* Remove find_child when searching for port_map and back_edges.
2021-01-19 15:26:29 +03:00
Sergey Shlyapnikov
f7e0d90292
[IE CLDNN] Eltwise b_fs_yx_fsv16 mixed presicion support (#3734) 2021-01-19 15:17:03 +03:00
Sergey Shlyapnikov
559b509b15
[IE CLDNN] Change memory reset rules (#2909) 2021-01-19 15:15:24 +03:00
Vladimir Paramuzov
e9775c1023
[IE CLDNN] Added missing pointer type case for blocked read (#3866) 2021-01-19 14:17:50 +03:00
Ilya Churaev
94b98c484c
Fix nGraph doxygen for master (#3899)
* Changed style of some headers

* Fixed shared buffer

* Remove chrome_trace

* Fixed comment
2021-01-19 13:39:32 +03:00
Vladimir Paramuzov
9cc58fc66a
[IE CLDNN] Changed weights layout used in the plugin (#3858)
Before this patch constant with weights could be not detected if
it wasn't directly connected to Conv/Deconv layer.
Now weights always uses common data format (bfzyx) in the plugin which is
converted into weights format later (goiyx, oiyx, etc), so weights sub-graph
can now contain anything
2021-01-19 13:06:20 +03:00
Vladislav Vinogradov
e88de8f822
Fix signed/unsigned comparison warnings (#3900)
They are treated as error, which leads to build failure.
Tested on Ubuntu 20.04, gcc 9.3.0.
2021-01-19 12:55:15 +03:00
Maksim Kutakov
c20c3a9e3d
[IE TESTS][CPU] Fusing tests added to the CPU specific single layer tests. (#3015) 2021-01-19 11:51:08 +03:00
Nikita Kudriavtsev
ab66eab652
[IE][VPU][DTS]: shrink mask support for StridedSlice and test (#3835) 2021-01-19 11:46:59 +03:00
Gorokhov Dmitriy
2bfc941cf1
[CPU] Runtime precision for execution graph (#3886) 2021-01-19 11:25:28 +03:00
Ilya Churaev
e82018221c
Added CC macro to transformations (#3795)
* Added CC macro to transformations

* Fixed typo

* Added MATCHER_SCOPE

* Fixed review comments

* Try to remove MATCHER_CALLBACK_SCOPE

* Fixed matcher name

* Fixed MATCHER_SCOPE

* Added documentation

* Fixed typo

* Fixed CC for linux

* Fixed names

* Fixed docs

* Fixed typo

* FIxed comments

* Add more CC macros
2021-01-19 10:19:25 +03:00
Vladislav Volkov
3baa305e0a
Improvements for subnormal floats zeroing in CPU plugin (#3797) 2021-01-19 09:58:30 +03:00
Ilya Lavrenov
f3f1b7002d
Deprecated IVariableState interface (#3884) 2021-01-18 16:58:35 +03:00
Mateusz Bencer
4d98d7ceee
ONNX tests mismatch error (#3836) 2021-01-18 12:39:32 +01:00
Ilya Lavrenov
cc1e8b9146
Fixed -Wall warnings on ARM build (#3885) 2021-01-18 13:59:28 +03:00
Bartosz Sledz
928201bee4
Add support for ONNX Operator ReduceSum v13 and revise other Reduce operators (#3605) 2021-01-18 10:47:40 +01:00
Vladimir Gavrilov
e20a58d770
Implement ExperimentalDetectronDetectionOutput and ExperimentalDetectronPriorGridGenerator operations as nGraph ops (#3374)
* Commit.

* Started to write nGraph operation ExperimentalDetectronDetectionOutput. Written draft of the header file.

* Written draft of the cpp-file for nGraph operation ExperimentalDetectronDetectionOutput.

* Small fix.

* Added reading of ExperimentalDetectronDetectionOutput as nGraph operation.

* Some fix.

* Unregistered old shape infer function of the operation ExperimentalDetectronDetectionOutput.

* Written the header file for the operation ExperimentalDetectronPriorGridGenerator.

* Small refactoring.

* Small fix.

* Added set_output_size(3) into op::ExperimentalDetectronDetectionOutput::validate_and_infer_types().

* Added check for number of inputs of ExperimentalDetectronDetectionOutput.

* Reverted some changes.

* Changed IR for ExperimentalDetectronDetectionOutput serialization test.

* Written cpp-file of nGraph operation ExperimentalDetectronPriorGridGenerator.

* Small fix.

* Some fixes.

* Fixes in type and shape infer functions of the MO operation ExperimentalDetectronDetectionOutput.

* Now ExperimentalDetectronPriorGridGenerator is readed as nGraph operation.

* Fixed the infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Started to write tests for the shape infer function of the nGraph operation ExperimentalDetectronDetectionOutput.

* Written the draft of the test for the shape infer function of the nGraph operation ExperimentalDetectronDetectionOutput.

* Small fix.

* Fixed ngraph/test/CMakeLists.txt.

* Started to write tests for the shape infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Now the shape infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator performs correctly case dynamic input shapes with static ranks.

* Continued to write test for the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Small fixes.

* Written tests for the shape infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator (case when input shapes are partially dynamic).

* Added test for reading ExperimentalDetectronDetectionOutput as an operation from opset6.

* Some fixes.

* Added some debug outputs.

* Deleted inserted debug output.

* Small fixes.

* Small fix.

* Small fix.

* Small change.

* Added comments to attributes of ExperimentalDetectronDetectionOutput.

* Reverted changes.

* Deleted shape infer for output port 3.

* Small fixes.

* Deleted redundant keyword 'virtual'.

* Deleted redundant usings in header files of nGraph operations ExperimentalDetectronDetectionOutput and ExperimentalDetectronPriorGridGenerator.

* Some fixes.

* Small change.

* Now GridGenerator::validate takes three args (input partial shapes).

* Small fix.

* Deleted some usings.

* Small code style fix.

* Reverted changes in validate_and_infer_types() and validate() of op::v6::ExperimentalDetectronPriorGridGenerator.

* Added description of the class ExperimentalDetectronDetectionOutput.

* Added some comments into the header file of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Some fixes.

* Added some comments to the class of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Now the MO operation ExperimentalDetectronDetectionOutput has the attribute 'version' as 'opset6'.

* Now the MO operation ExperimentalDetectronPriorGridGenerator has the attribute 'version' as 'opset6'.

* Some fixes in the MO class ExperimentalDetectronDetectionOutput.

* Fixes in the shape infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Renamed test XML model for ExperimentalDetectronDetectionOutput serialization tests.

* Added validation of input shapes for the nGraph operation ExperimentalDetectronDetectionOutput.

* Small fixes in the XML models for serialization testing of ExperimentalDetectronDetectionOutput.

* Added tests of shape infer function of the nGraph operation ExperimentalDetectronDetectionOutput for the case when input shapes are partially dynamic.

* Added tests of shape infer function of the nGraph operation ExperimentalDetectronDetectionOutput for the case when some input shapes have dynamic ranks.

* Small fixes.

* Small fix in the MO operation ExperimentalDetectronDetectionOutput shape infer function.

* Fixes in op::v6::ExperimentalDetectronDetectionOutput::validate_and_infer_types().

* Code style fix.

* Small refactoring.

* Added NGRAPH_OP_SCOPE into ExperimentalDetectronDetectionOutput nGraph class.

* Added NGRAPH_OP_SCOPE to the nGraph class ExperimentalDetectronPriorGridGenerator.

* Small fixes.

* Some refactoring.

* Small fix.

* Small fixes.

* Reverted some changes in ExperimentalDetectronDetectionOutput::validate_and_infer_type().

* Now VPU reads the attribute class_agnostic_box_regression of ExperimentalDetectronDetectionOutput as Bool.

* Now MO generates attribute  'class_agnostic_box_regression' of ExperimentalDetectronDetectionOutput only with values false or true.

* Small fix.

* Tabs were replaced by spaces in some XMLs.

* Fixed copyrights.

* Refactoring in op::v6::ExperimentalDetectronDetectionOutput::validate_and_infer_types().

* Refactoring in op::v6::ExperimentalDetectronPriorGridGenerator::validate_and_infer_types().

* Small fixes.

* Started to write ExperimentalDetectronPriorGridGenerator shape infer tests for the case when dynamic input dimensions are intervals.

* Deleted redundant 'return'.

* Written tests for interval values of input shapes of op::v6::ExperimentalDetectronPriorGridGenerator.

* Code style fix.

* Code style fix.
2021-01-18 12:16:40 +03:00
Alexander Perepelkin
f5085d3216
Enable calculation of reference data without prior run of infer request (#3856) 2021-01-18 12:12:07 +03:00
Ilya Lavrenov
fa599b25bb
Proper cpplint target for object libraries (#3883) 2021-01-18 11:56:35 +03:00
Maxim Vafin
af5eccc6ae
Add MVN-6 related transformations (#3710)
* Add MVN decomposition transformation

* Add MVN-1 to MVN-6 transformation

* Apply review feedback

* Apply review feedback

* Fix build

* Fix if statement and add 5D tests

* Apply review feedback

* Apply review feedback

* Apply feedback

* Revert "Apply feedback"

This reverts commit 039fefbff9.

* Apply review feedback

* Apply review feedback

* Fix build issue

* Apply review feedback

* Apply review feedback

* Apply feedback
2021-01-18 10:34:01 +03:00
Anton Chetverikov
d462626826
Update MO extensions enabling/disabling mechanism (#3873)
* Add id for NormalizeToNarmalizeL2 transformation

* Update copyright year

* Update extensions enabling/disabling mechanism

* Remove copyright change

* Copyright year

* Update documentation

* Revert missed year in copyright
2021-01-18 10:32:02 +03:00
Aleksandr Korolev
2117020cbb
[IE][VPU]: changing condition in HW tiling (#3695) 2021-01-18 10:27:44 +03:00
Gleb Kazantaev
99b83e9238
Remove deprecated methods usage from transformation library (#3881)
* Remove deprecated methods usage from transformation library

* graph_rewrite_callback -> matcher_pass_callback

* Clean-up legacy library from deprecated methods usage

* Update func tests
2021-01-18 06:25:58 +03:00
Gleb Kazantaev
aa73eb2424
Offline transformation API (#3408)
* Added offline transformations library

* Added python API for calling MOCTransformations

* Added CF flag for MOC Transformations

* Divided offline api to separate independent module

* Update MOC pipeline to execute only fusions

* Disable CF for PriorBox ops

* Clean-up

* Added python test

* Removed transformation pipeline as it is not ready yet

* Remove not related to this PR changes

* Fixed build for dev package case; renamed to offline_transformations_api

* Removed unrelated changes

* Removed excess exports from cmake

* Removed useless custom command from cmake
2021-01-18 00:15:44 +03:00
Liubov Batanina
3a21c99b48
Replaced size_t with int64_t (#3744) 2021-01-16 00:39:01 +03:00
Tomasz Socha
8271c515f7
[ONNX Importer] move null_node to private scope (#3877) 2021-01-16 00:33:46 +03:00
Alexander Zhogov
6e5ef86dd1
Azure CI: Prepare for updating IB ver (#3085)
* Add install_ib_console.bat
2021-01-15 21:40:39 +03:00
Tomasz Dołbniak
52034a0613
ONNX model editor - replacing input shapes (#3844) 2021-01-15 17:26:44 +01:00
Ilya Lavrenov
567ef8a4f0
Fixed warnings generation for ngraph API (#3864) 2021-01-15 19:12:14 +03:00
Gabriele Galiero Casay
a555908858
Develop Bucketize Reference Implementation (#3693)
* Bucketize: Revise op class and add type_prop unit tests

* Bucketize: Develop reference implementation

* Bucketize: Add unit tests

* Bucketize: Add single layer test and cpu instantiation

* Bucketize: Add unit test with empty buckets for INTERPRETER

* Bucketize: Typo in buckets element type check

* Bucketize: Add custom generated inputs in single layer test class

* Bucketize: Use random_device to generate seed for data blob

* Bucketize: Remove unsupported f64 precision

* Bucketize: Add function description

* Bucketize: Remove randomness of inputs generation by using static seed

* Bucketize: Support different precisions for data and bucket inputs

* Bucketize: Refactor type_prop tests and improve backend unit test coverage
2021-01-15 17:51:58 +03:00
Maksim Makridin
a280a3abcc
Adding docs for maacOS samples building (#3862) 2021-01-15 17:25:05 +03:00
Mateusz Tabaka
bab68b65c7
Add Clamp fusion transformation (#3756)
* Add Clamp fusion transformation

It fuses Maximum->Minimum subgraph to Clamp operator.

Ticket: 44783

* address review comments

* update year in headers
2021-01-15 17:11:45 +03:00
Krzysztof Bruniecki
00c57a3bdf
Enable CNN2D tests for GNa Lib 2.1.0.1048 (#3529)
Enable tests including rectangular kernel and multiple kernels
  Pad filters to 16B
  Fix style space after if before ( needed
  Fix PRETTY_FUNCTION double def
  Fix canMatchWith1AsyncThread
  Fix ifdefs for gna 2.0
  Add and fix mock
  Simplify and fix condition for Rotate features
  Refine commnets in GNA CONV tests file
  Apply review, Refactor ConvolutionPrimitive
  Refine CNN enforce legacy
  Add debug print
  Move debug dump definitions
  Add new metric for GNA library version
  Add coments on FP32
2021-01-15 16:56:37 +03:00
Mateusz Tabaka
69af75e483
Allow FakeQuantize with output_low scalar to be transformed (#3812)
* Allow FakeQuantize with output_low scalar to be transformed

* add test case with scalar
2021-01-15 16:16:53 +03:00
Maksim Makridin
9211dc07bc
Enhancing Object Detection Sample SSD C Sample docs to cover the use of ie_network_reshape() for setting the batch size (#3875) 2021-01-15 15:20:47 +03:00
Nikolay Tyukaev
ab94f60cb9
doc files copyright (#3843)
* doc files copyright

* fix indentation
2021-01-15 15:15:17 +03:00
Ilya Lavrenov
a0df6152a8
Added -Wall for IE Core libraries (#3852) 2021-01-15 12:51:01 +03:00
Anastasia Kuporosova
320aafbb59
[Python API] Small fixes in tests and change of format string to f-string (#3865) 2021-01-15 12:48:58 +03:00
Nikita Kudriavtsev
5d63b5f41f
[IE][VPU]: Fixed the calculation of timeout for x32 system (#3842) 2021-01-15 12:17:28 +03:00
Nikita Kudriavtsev
e9a52d39ac
[IE][VPU]: Added MYRIAD_THROUGHPUT_STREAMS in default config (#3861) 2021-01-15 12:08:59 +03:00
Tomasz Socha
cf358a9d0d
[ONNX Importer] Reduce amount of ONNX Importer public includes. (#3837)
* Initial moving

* ONNX Importer is private now - CMakeLists.txt

* ONNX Importer is private now - Includes

* Make some files visible

* Style apply

* Review fix

* Public headers have a prefix now

* Style

* hide more headers
2021-01-15 09:48:15 +03:00
Andrey Somsikov
cc9c480554
Fix sanitizer build (#3869) 2021-01-15 09:42:31 +03:00
Bartosz Lesniewski
2e09cd653a
Attributes have different values in MO and NGraph IRs (#3793)
* regionyolo do_softmax attribute

* add serialization single layer tests for normalizel2 and reshape

* add prelu sslt, change letter size in op name to align with MO

* add shufflechanels sslt, add workaround to serialize the op with proper opset number

* add broadcast sslt, change attribute string representations to lowercase

* add pad sslt, change attribute string representations to lowercase

* Unify sslt name prefixes

* add prelu name translation for serialization

* change expected type of regionyolo do_softmax attribute to bool

* transform autobcast type attr to lowercase, add unit test, add special opset mapping in serialization

* style fix

* fix indentation

* fix indentation 2

* Possibility of different opset assignment for different op versions

* Update header dates in  modified files

* Match special opset to type_info_t instead of a string

* Adjust the comment to match the code
2021-01-15 07:17:12 +03:00
Sergey Lyubimtsev
fa41a799b5
Inconsistent inference results for hello_classification sample between Windows and Linux (44369) (#3849)
* Fix image load issue

* remove extra line
2021-01-14 17:22:41 +03:00
Alexey Varyzgin
26d0d2c240
[BF16] Simulation mode was added to documentation (#3649)
* [BF16] Simulation mode was added to documentation

* Update Bfloat16Inference.md

Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
2021-01-14 16:58:59 +03:00
Evgeny Lazarev
dbad8809bf
MO dev guide refactoring (#3266) (#3595)
* Release mo dev guide refactoring (#3266)

* Updated MO extension guide

* Minor change and adding svg images

* Added additional information about operation extractors. Fixed links and markdown issues

* Added missing file with information about Caffe Python layers and image for MO transformations dependencies graph

* Added section with common graph transformations attributes and diagram with anchor transformations. Added list of available front phase transformations

* Added description of front-phase transformations except the scope-defined and points defined. Removed legacy document and examples for such transformations.

* Added sections about node name pattern defined front phase transformations. Copy-pasted the old one for the points defined front transformation

* Added description of the rest of front transformations and and all middle and back phase transformations

* Refactored Legacy_Mode_for_Caffe_Custom_Layers and updated the Customize_Model_Optimizer with information about extractors order

* Added TOC for the MO Dev guide document and updated SVG images with PNG ones

* Fixed broken link. Removed redundant image

* Fixed broken links

* Added information about attributes 'run_not_recursively', 'force_clean_up' and 'force_shape_inference' of the transformation

* Code review comments

* Added a section about `Port`s

* Extended Ports description with examples

* Added information about Connections

* Updated MO README.md and removed a lot of redundant and misleading information

* Updates to the Customize_Model_Optimizer.md

* More updates to the Customize_Model_Optimizer.md

* Final updates for the Customize_Model_Optimizer.md

* Fixed some broken links

* More fixed links

* Refactored Custom Layers Guide: removed legacy and incorrect text, added up-to-date.

* Draft implementation of the Custom layer guide example for the MO part

* Fixed broken links using #. Change layer->operation in extensibility documents

* Updated Custom operation guide with IE part

* Fixed broken links and minor updates to the Custom Operations Guide

* Updating links

* Layer->Operation

* Moved FFTOp implementation to the template extension

* Update the CMake for template_extension to build the FFT op conditionally

* Fixed template extension compilation

* Fixed CMake for template extension

* Fixed broken snippet

* Added mri_demo script and updated documentation

* One more compilation error fix

* Added missing header for a demo file

* Added reference to OpenCV

* Fixed unit test for the template extension

* Fixed typos in the template extension

* Fixed compilation of template extension for case when ONNX importer is disabled

Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2021-01-14 16:28:53 +03:00