Commit Graph

1357 Commits

Author SHA1 Message Date
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
Nazmul Alom
03ace8b5a6
made compatible with ubuntu 20.04 (#1798)
* made compatible with ubuntu 20.04

* demo_benchmark_app updated

* demo_security_barrier_camera updated

* demo_squeezenet_download_convert_run updated

* Update demo_benchmark_app.sh

* Update demo_security_barrier_camera.sh

* Update demo_squeezenet_download_convert_run.sh

* unwanted file removed
2020-08-27 19:40:44 +03:00
Vladimir Paramuzov
041f1a694c
[IE CLDNN] Improved GWS for 3d fsv16 eltwise (#1957) 2020-08-27 17:57:30 +03:00
Dmitry Kurtaev
8b2c12967d
[JAVA] Use JUnit 4 features to log Java tests log (#1953)
* [JAVA] Use JUnit 4 features to log Java tests log

* [JAVA] Add device parameter for Java tests
2020-08-27 17:10:24 +03:00
Bartosz Lesniewski
d3682417bb
Add support for ReduceL1 and ReduceL2 to ONNX Importer (#1838) 2020-08-27 15:47:04 +02:00
Jan Iwaszkiewicz
c147f03d5f
[nGraph] RTInfo refactor (#1806) 2020-08-27 15:41:21 +02:00
Alexey Suhov
038d5d8f22
Update README.md (#1969) 2020-08-27 16:29:11 +03:00
Katarzyna Mitrus
410559d497
[ONNX] Update ONNX importer to use SotfPlus-4 (#1959)
* Use SoftPlus-4 in ONNX importer

* Tests update
2020-08-27 15:55:04 +03:00
Anastasia Kuporosova
bb729d0ee9
[Samples] Use get_ops for iteration over graph in samples (#1961) 2020-08-27 14:14:59 +03:00
Ilya Churaev
e60331a232
Use relative paths in error messages (#1963) 2020-08-27 14:04:02 +03:00
Alexey Varyzgin
b6b536f23c
[CPU] [MSVC] memcpy and memcpy_s were unified for all layers and SIMD functionality was enabled on VS2019 (#1374) 2020-08-27 13:49:31 +03:00
Anton Chetverikov
675e1c821e
Update priorbox extenders (#1925) 2020-08-27 13:10:44 +03:00
Evgeny Lazarev
a4d90a0aba
MO fusing activations (#1942)
* Added HSwish operation

* Added HSwish fusing transformation

* Fixed BOM

* Added unit test for HSwish fusing transformation

* Fixed unit tests for transformations using 'build_graph_with_edge_attrs' function to build the graph

* Added fusion transformation for Swish operation

* Added fusing transformation for Softplus operation

* Added fusion transformation for Mish operation

* Added check for the node name in the unit tests

* Fixed Mish fusion pattern

* Updated Mish fusion transformation. Added unit test

* Updated HSwish fusing transformation

* Updated Swish fusion transformation and tests

* Fixed unit tests
2020-08-27 11:56:52 +03:00
Evgenya Stepyreva
0182b97980
ExperimentalDetectron* shape infer old-style (#1962)
* ExperimentalDetectron* shape infer old-style

* nGraph reshape tests
2020-08-27 11:52:04 +03:00
Vladimir Paramuzov
ae8be58701
[IE CLDNN] Mixed mode support for proposal primitive (#1857) 2020-08-27 11:43:24 +03:00
Evgenya Stepyreva
45070963a5
[MO] Relax Reshape layer hardcode under MatMul (#1921)
* [MO] Relax Reshape layer hardcode under MatMul

* Memory fix
2020-08-27 09:45:08 +03:00
Evgeny Lazarev
0e9ead3495
Added workaround for logical elementwise operations to change the constant input data type if it does not match the other one (#1955) 2020-08-27 08:46:34 +03:00
Jedrzej Hajduczenia
d82a16abd8
[IE CLDNN] Fix fused ops in 1x1 conv fsv16 kernel (#1948) 2020-08-26 20:58:51 +03:00
Vladimir Paramuzov
9618367cff
[IE CLDNN] Fixed memory allocation for case when usm is not available (#1952) 2020-08-26 20:58:21 +03:00
Ilya Churaev
a072c3b7b6
Fixed mean image support for IR v10 (#1926)
* Fixed mean image support for IR v10

* Fixed comments
2020-08-26 20:45:54 +03:00
Mikhail Ryzhov
7859aab4b0
Modified samples to support ONNX models (#1680)
* Modified samples to support ONNX models

- Removed manual loading of IR .bin files (hello_classification, object_detection_sample_ssd)
- Corrected comments
- Added Note in README files

* Modified samples to support ONNX models

- Removed manual loading of IR .bin files (hello_classification, object_detection_sample_ssd)
- Corrected comments
- Added Note in README files
2020-08-26 18:53:24 +03:00
Artyom Anokhov
6a0f3e5efa
[SCRIPTS] install_NEO_OCL_driver.sh: Added verifying current driver version (#1951)
* install_NEO_OCL_driver.sh: Added verifying current driver version

* install_NEO_OCL_driver.sh: Updated removal oldest driver on Ubuntu. Updated logic on defining

* install_NEO_OCL_driver.sh: Fixed function name
2020-08-26 17:25:33 +03:00
Roman Kazantsev
9d5a6cff70
Enable eager execution while TensorFlow 2 model is loaded (#1945) 2020-08-26 17:16:58 +03:00
Anton Pankratv
70839c1663
Fixed threading configuration parameters (#1919)
* Fixed threading parameters

* Updated documentation

* Fix for macos

* Fix doc
2020-08-26 16:38:41 +03:00