Commit Graph

1230 Commits

Author SHA1 Message Date
Ilya Churaev
02c8a3c358
Removed attrs prefix for some layers (#2037)
* Removed attrs prefix for some layers

* Fixed tests
2020-09-03 07:58:07 +03:00
Evgenya Stepyreva
16c1bbeb52
38009: InterpolateReshape fix for TensorFlow style Concat (#2047)
* 38009: InterpolateReshape fix fot TensorFlow Models

* Update interpolate_reshape_test.py

* revert debug code
2020-09-02 23:01:12 +03:00
Evgeny Lazarev
a4c1c6fc46
MO docs update reshape and deprecate (#2021)
* Updated documentation for Reshape, Squeeze and Unsqueeze

* Updated MO documentation about deprecated IR v7
2020-09-02 15:49:32 +03:00
Anton Romanov
152781941a
Added Conda CentOS documentation 2020.4 (#2010) 2020-09-02 13:10:14 +03:00
Evgeny Lazarev
c7bcbb576c
Updated ConcatOptimization to support Concat with 0D input of one dimension (#2012)
* Updated ConcatOptimization transformation to work when one dimension of input to Concat is 0D

* Fixed ConcatOptimization transformation to reconnect input edges to Concat

* Completely re-written ConcatOptimization

* Updated Concat0D optimization transformation

* Fixed order of traversing Concat input ports

* Refactored ConcatOptimization transformation to use `delete_input_port` function

* Detele trailing unconnected ports in the ConcatOptimization.py

* Cleaner implementation of ConcatOptimization + unit test
2020-09-02 10:21:23 +03:00
Lukasz Debski
315274ad12
[IE CLDNN] Fixing eltwise input sizes (#2017) 2020-09-02 09:36:52 +03:00
Mikołaj Życzyński
e3178122ee
[IE CLDNN] Reduce b_fs_yx_fsv16 optimized kernel (#1690) 2020-09-02 09:35:30 +03:00
Konrad Dobros
cca724eac7
[IE CLDNN] Add fc kernel for bfyx with batches (#1946) 2020-09-02 09:32:59 +03:00
Konrad Dobros
af40de9bc1
[IE CLDNN] Add verbose macros for reorder_inputs (#1947) 2020-09-01 19:57:33 +03:00
Vladimir Paramuzov
9d4f1a7555
[IE CLDNN] First conv 3d imad (#1935) 2020-09-01 19:57:13 +03:00
Pavel Rodionov
445fd68423
[GNA] Improve ReadHeader (#1843)
* [GNA] Improve ReadHeader

Issue-34205

* [GNA[ Fix stack corruption issue in ReadHeader

* [GNA] fix code style

Co-authored-by: Kamil Magierski <kamil.magierski@intel.com>
2020-09-01 19:36:56 +03:00
Gleb Kazantaev
34b595d218
Fixed replace_output_update_name method to preserve rt info (#1983)
* Fixed replace_output_update_name method to preserve rt info

* added test
2020-09-01 17:02:46 +03:00
Gleb Kazantaev
25856f4cdc
Fixed SoftPlusDecomposition transformation (#2011) 2020-09-01 16:20:42 +03:00
Jan Iwaszkiewicz
757b1f0d9e
[nGraph] Python tests - move to int32 (#1966) 2020-09-01 15:11:58 +02:00
RomanZm
aeaffef11c
[IE CLDNN] ScatterUpdate layer added (#1839) 2020-09-01 16:07:12 +03:00
Anna Alberska
01700776f2
[GNA] RemovePermutationsNHWCToNCHWPass - check whether permute operation is last one in the model (#1805)
* [GNA] check whether permute operation is last one in the model

* add assert for checking

* change casting to static

* check casting to ConvolutionLayer
2020-09-01 15:32:28 +03:00
Lukasz Debski
b85de7f67a
[IE CLDNN] Loosen restrictions on channels in 3d fsv16 convolution kernel (#1744) 2020-09-01 15:17:03 +03:00
Vladimir Paramuzov
aadd461c11
[IE CLDNN] Disabled choose_impl call for generic nodes in some cases to avoid double compilation (#1989) 2020-09-01 15:00:52 +03:00
Ilya Churaev
c9820a9588
Do not remove convert after the topK (#1950)
* Do not remove convert after the topK

* Added debug message

* Removed xFail

* Revert "Added debug message"

This reverts commit a01ace4ade88d73e2797b47c58db33943b0f508d.

* Added test
2020-09-01 14:36:30 +03:00
Roman Vyunov (Intel)
7796b0f277
[IE][VPU]: Customer model compilation error - fix(#1901)
Fix of 36693 issue. 

* Problem: One of the concat inputs is a constant. Adjust_data_layout pass tries to duplicate all inputs that do not meet the strides requirements, and then copy from the original input to the duplicate with strides. But duplicateData with an argument in the form of a constant also creates a constant, and then, when Copy, an error appears, the presence of a constant output, which cannot be.
* Solution: In addConvertedData create an intermediate date with the same description as the constant, and then copy the constant data into it with the required strides.

Co-authored-by: DariaMityagina <daria.mityagina@intel.com>
2020-09-01 13:03:31 +03:00
Nikolay Shchegolev
43ec4a5695
[CPU] CTCLoss operation implementation. (#1482) 2020-09-01 12:52:31 +03:00
Katarzyna Mitrus
54a24b0e40
[ONNX] Enable ScatterND operator in ONNX importer (#1987)
* Enable ONNX scatter_nd

* Tests update
2020-09-01 12:10:03 +03:00
Szymon Durawa
b58e982e6a
Dynamic shape cell (#1683)
* validate_and_infer_types() implementation

* input parameter validation for LSTM, GRU and RNN

* style-check applied

* Add LSTMSequence dynamic shape validation and test props for RNNCell, GRUCell, LSTMCell and LSTMSequence.

* recurrent_sequence.hpp moved to ngraph/core/include/ngraph/op/util/

* style check applied

* removed unused variable from LSTMSequence::validate_and_infer_types

* Add missing newline mark at the end of file.

* Add supression macro for FusedOp deprecation.

* Add element type initialization

* Apply PR review remarks

* Rewrite tests to use gtest exception assertions.
2020-09-01 12:01:20 +03:00
Vladimir Gavrilov
7a74792ac4
Intepolate-4 nGraph operation (#1412)
* Fixed prototype of evaluate method.

* Rewritten Interpolate-4 ctors (added argument output_shape). Corrected tests.

* Fixed typo.

* Fixed number of args of make_shared in op::v4::Interpolate::clone_with_new_inputs.

* Fixes in Interpolate-4 tests.

* Now ONNX Upsample-1 is readed as Interpolate-4 with 4 inputs.

* Code style fixes.

* Some fixes in Interpolate-4 layer test.

* Now ONNX Upsample-9 is readed as Interpolate-4 with 4 inputs.

* Small fixes.

* Some changes.

* Fixed processing of 'scales' input in evaluation of Interpolate-4: now 'scales' contains scales only from 'axes'.

* Fixes in documentation.

* Now reference implementation of Interpolate-4 is rewritten for using 3 required inputs.

* Some code style fixes.

* Small fix.

* Started to write tests for method evaluate() of Interpolate-4.

* Continued to write tests for evaluate() of Interpolate-4.

* Some fixes.

* Some additions.

* Written draft of tests for 'cubic' mode with using scales.

* Some changes.

* Started to write tests for 'nearest' mode.

* Started to write tests for 'linear_onnx' mode.

* Some changes.

* Small fixes.

* Added setup of output type.

* Small addition.

* Added debug print into Interpolate-4 evaluate.

* Now in Interpolate-4 evaluation tests 3 inputs of Interpolate are Constants.

* Small changes.

* Added some debug print.

* Added more debug print.

* Some fixes.

* Now 4th argument of runtime::interpolate has type std::vector<int64_t>.

* Added checks for result of calculations.

* Added another expected values vector for the mode 'cubic'.

* Temporarily commented result value checks  for the cubic mode.

* Written tests for 'nearest' mode.

* Some reorganization.

* Written tests for 'linear_onnx' mode.

* Fixed padding loop.

* Fixed docs for 'linear_onnx' mode.

* Written tests for 'cubic' mode.

* Deleted debug print.

* Fixed code style.

* Enabled CPU layer tests for Interpolate-4.

* Reverted changes of this file.

* Now ONNX importer reads Resize-1 as Interpolate-4 with 4 inputs.

* Now ONNX importer reads Resize-11 as Interpolate-4 with 4 inputs.

* Small fixes.

* Fixed docs.

* Added small epsilon in the shape calculation in the function op::v4::Interpolate::infer_using_scales.

* Small fix.

* Reduced size of the template function eval().

* Now the 'nearest' mode is rewritten to CoordinateTransfom instead of NDim* classes

* Now the 'cubic' mode is rewritten to use CoordinateTransformation instead of NDim classes.

* Started to rewrite 'linear' mode using CoordinateTransform.

* Started to write helper class.

* Small fix.

* Small changes.

* Some fix.

* Fixed typo.

* Now the preamble of 'linear_onnx' mode implementation is a method of helper class.

* Now the function clip_coord is the method of helper class, and the mode 'linear' uses CoordinateTransform instead of NDim classes.

* Deleted NDim classes.

* Some fixes.

* Some refactoring.

* Some refactoring: now inner calculation of 'linear' is in helper class.

* Moved reference implementation of Interpolate-4 into library with reference implementations.

* Small fix.

* Deleted commented tests.

* Code stile fixes.

* Deleted redundant type prop tests for Interpolate-4.

* Documentation fixes.

* Disabled IE_CPU tests for ONNX Resize: Interpolate-4 is not implemented in plugins.

* Temporarily disabled some ONNX tests.

* Some refactoring: deleted redundant attributes of InterpolateEval class.

* Small fix.

* Added NGRAPH_RTTI_DECLARATION and NGRAPH_RTTI_DEFINITION.

* Added debug print to 'cubic' mode calculation.

* Some deletions.

* Small fix.

* Fixed typos.

* Added another debug print.

* Now indices_shape is constructed from std::vector<std::size_t>(num_of_axes, 4) again.

* Fixed CMakeLists.txt.

* Small fix.

* Added more debug print.

* Fixed typo.

* Fixed calculation of the first argument of helper.clip_coord in the inner loop of cubic_func.

* Some code style fixes.

* Alphabetically sorted operations of opset4.

* Deleted constant cannot_define_axes.

* Used std::iota instead of loop.

* Renamed structure InfoToCallReference.

* Now void op::v4::Interpolate::validate_and_infer_types() checks an element type of an input tensor.

* Code style fix.

* Changes in reading of ONNX Resize and Upsample: we generate Interpolate-4 without 'axes' input.

* Now bodies of functions evaluate_interpolate_v4() and inline bool evaluate() are moved in the method bool op::v4::Interpolate::evaluate.

* Fixes in example of the documentation of Interpolate-4.

* Fixed typos.

* Small fix.

* Some fixes.

* Deleted some type aliases.

* Uncommented a test for 'cubic' mode.

* Small code style fix in bool op::v4::Interpolate::evaluate.

* Uncommented more test for Interpolate-4 reference implementation.

* Added more debug print.

* Some changes.

* Uncommented all tests for Interpolate-4 evaluate().

* Deleted debug print.

* Deleted 'simple' mode from the map nearest_mode_map.

* Code style fixes.

* Disabled some CPU tests.

* Some fixes.

* Small fixes.

* Some fixes.

* Fixed typo.

* Fixed typo.

* Small change.

* Fixed some typos.

* Fixed some typos.

* Fix in operator() of the class GetOriginalCoordinate.

* Disabled some CPU tests.

* Small changes.

* Deleted template function from resize.cpp.

* Code style fixes.

* Refactored the method op::v4::Interpolate::evaluate.

* Added documentation for infer_using_scales() and infer_using_shapes().

* Added documentation for classes GetNearestPixel and GetOriginalCoordinate.

* Small fixes.

* Some code style fixes.

* Small fixes.

* Some changes.

* Added NGRAPH_SUPPRESS_DEPRECATED_START and NGRAPH_SUPPRESS_DEPRECATED_END for using v0::InterpolateAttrs; and using v0::Interpolate;

* Code style fix.

* Enabled ONNX import only tests for Resize-10, Upsample-8, Upsample-9.

* Fixed element type for scales_const. Fixed targetShapes and pads in single layer tests.

* Small changes.

* Added conversion from NGRAPH to CNNLayer.

* Added documentation for the class InterpolateEval.

* Now 'nearest' mode has special tests in cpu single layer tests.

* Small changes.

* Fixes in cpu single layer tests.

* Temporarily commented Interpolate-4 in ConvertFunctionToCNNNetworkTests.

* Added some docs.

* Enabled some tests for Resize-11.

* Added test.

* Corrected expected values in the resize_downsample_scales_align_corners case.

* Added more test for the 'cubic' mode.

* Added more test for linear_onnx mode.

* Deleted debug print for linear_onnx mode.

* Deleted debug prints. Added yet another test for 'nearest' mode.

* Fixes for import of ONNX Resize-10 and Upsamples.

* Applyed Evgeny Lazarev fix for Interpolate-4 infer function.

* Code style fixes.

* Some tests were deleted from unit_test.manifest file for INTERPRETER.

* Deleted test for downscale Resize-10: results of infer are correct, but comparison is not.

* Enabled test INTERPRETER.onnx_empty_initializers_handling.

* Some fixes.

* Added the method run_with_tolerance_as_fp() to the class TestCase and the method compare_results_with_tolerance_as_fp() to the class TestCaseEngine.

* Small fix.

* Small fix.

* Added yet another type_prop test.

* Disabled CPU test IE_CPU.onnx_empty_initializers_handling.

* Code style fixes.

* Enabled some ONNX tests.

* Some changes.

* Code style fix.

* Enabled test INTERPRETER.onnx_model_round.

* Disabled tests with behavior as behavior of INTERPRETER.onnx_resize11_scales_down_linear.

* Changed tolerance for test onnx_empty_initializers_handling.

* Changed tolerance in the test onnx_resize11_sizes_linear (otherwise this test is failed in MacOS). Disabled test INTERPRETER.onnx_resize11_sizes_nearest_asymmetric_floor, because this test failed in MacOS only.
2020-09-01 06:57:34 +03:00
Ilya Churaev
ebc7c3fe82
Print friendly name instead of name to stream (#1985) 2020-09-01 06:04:54 +03:00
Ilya Churaev
8d36305cbc
Added documentation about supported ONNX operations (#2004)
* Added documentation about supported ONNX operations

* Fixed comments
2020-09-01 06:04:37 +03:00
Ilya Churaev
71c5fad517
Removed NGRAPH_IE_ENABLE flag because it is always ON if unit tests are enabled (#2003) 2020-09-01 06:03:59 +03:00
Gabriele Galiero Casay
deeb0577f2
Dynamic shape support for builder collapse (#1971) 2020-08-31 18:26:36 +02:00
Ilya Lavrenov
b176578e13
Removed useless export from readers (#2009) 2020-08-31 19:00:58 +03:00
Pavel Esir
7cd6b353ef
[MO] Fix when Crop asks for MXNet specific cmdarg enable_ssd_gluoncv (#1978) 2020-08-31 18:06:13 +03:00
Evgenya Stepyreva
510c699731
[ MO ] DepthToSpace & ShuffleChannels fusion (#2001)
* [ MO ] ShuffleChannel fusion

* DepthToSpace fusion

* test

* comment
2020-08-31 16:20:19 +03:00
Alexander Chaiko
38eb4a2398
[IE CLDNN] Restrict bsv16_fsv16 convolution to int8 for batch 16 (#1954) 2020-08-31 10:58:32 +03:00
Ilya Lavrenov
d7762215b9
Fixed compilation with private plugins (#1997) 2020-08-31 10:58:07 +03:00
Evgeny Lazarev
210398674d
Multiple fixes related to tickets 37105 and 37615 (#1979)
* Multiple fixes.

1. Fixes SpaceToBatch transformation to not crash if inputs are not Constant
2. Fixed eliminate_squueze, eliminate_unsqueeze to not crash when input has dynamic rank
3. Added reference implementation for the FloorMod operation

* Code style fixes

* Update floor_mod.hpp

Removed unnecessary function
2020-08-31 10:41:18 +03:00
Konrad Dobros
2b8249fc9f
[IE CLDNN] Improve performance of fc block fp16 implementation (#1993)
Main purpose of this change is to fix weird behaviour of
fully_connected_gpu_fb_io_block_fp16 implementation where it shows
severe performance drop without bias.
Additionally assembly for case with bias is improved.
2020-08-31 09:52:47 +03:00
Ilya Lavrenov
c7b3bd0195
Fixed compilation when NGRAPH_INTERP is not enabled (#1998) 2020-08-31 06:47:42 +03:00
Ilya Lavrenov
c7c405d54b
Added note about QueryNetwork (#1965) 2020-08-30 17:07:08 +03:00
Yegor Kruglov
b162f9d5ac
[ MO ][ RESHAPE ] Fixes in RNNSequenceNormalize transformation (#1909)
* initial commit

* first reshap-able variant

* right version for reshape

* comment update

* fixes for failed e2e

* set data type to ngraph TensorIterator

* Fix dynamic shapes for cells ops

* clean up

Co-authored-by: yegor.kruglov <ykruglov@nnlvdp-mkaglins.inn.intel.com>
2020-08-30 01:19:22 +03:00
Maksim Doronin
b54c7bf7ea
[IE][VPU]: firmware update (#1973) 2020-08-29 13:23:53 +03:00
Andrey Dmitriev
bdbb04f47b
[GNA] Added fix for eltwise layer with more 65k elements (#1943) 2020-08-28 18:26:31 +03:00
Evgeny Latkin
245920a95d
[IE][VPU]: ignore 2nd output of Proposal layer (#1975)
* TODO: implement 2nd output, see: #-37327: Several models Failed to compile layer "proposals"
2020-08-28 17:18:42 +03:00
Roman Kazantsev
990f4e2919
Implement reshapeable CTCGreedyDecoderPlusSparseToDense transformation and test (#1906)
* Implement reshapeable CTCGreedyDecoderPlusSparseToDense transformation and test

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix consts (after code-review #1)

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add CTCGreedyDecoderTransformation with more generic pattern

Also it adds new middle-replacer for transforming sequence length to a mask
along with tests.

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Do fixes after review #2

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix after review #3

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix after review #4

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-08-28 14:28:32 +03:00
Anna Alberska
37357350ad
refactor import network (#1871) 2020-08-28 13:48:48 +03:00
Mateusz Bencer
55e4d5673a
NormalizeL2 transformation (#1892)
* first version of implementation

* added unit tests

* changed multiply to pow

* doc + unit tests

* more unit tests

* code review remarks

* missing new line

* remarks

* review remarks

* Build fix - update constant check function in HSwishFusionWithClamp

Co-authored-by: mitruska <katarzyna.mitrus@intel.com>
2020-08-28 06:51:46 +03:00
Tai-Min
2fc9680380
Fix the case when run stage of verification scripts failed on Windows 10 due to different build directory for executables (#1478) 2020-08-27 23:58:16 +03:00
Vladimir Paramuzov
34ba00174e
[IE CLDNN] Cleanup part 2 (#1865)
* [IE CLDNN] Removed some unused kernels and layouts

* [IE CLDNN] Removed bsv4_fsv32 layout

* [IE CLDNN] Removed remaining BF8_XY16 usages. Removed definitions.cl
2020-08-27 23:06:20 +03:00
Alexey Suhov
711d208eb8
Update install_openvino_dependencies.sh for Ubuntu 20.04 (#1974) 2020-08-27 22:30:30 +03:00
Mikhail Letavin
1690c93629
[IE CLDNN] Move iGPU to first position in GPU device map (#1828) 2020-08-27 21:25:24 +03:00
Andrey Sokolov
3ac60b08e2
[IE][VPU]: ROIAlign : use CHWc version (#1937)
* ROIAlign optimization (step 3): use CHWc version
2020-08-27 20:45:33 +03:00
Yuliya Maskina
07867198ce
GVA/Update install_openvino_dependencies.sh for GVA on Ubuntu20.04 (#1895)
* Update install_openvino_dependencies.sh for GVA on Ubuntu20.04

* Add dependencies
2020-08-27 19:41:52 +03:00