Revise Broadcast reference implementation (#2715)
authorMateusz Bencer <mateusz.bencer@intel.com>
Tue, 10 Nov 2020 07:42:26 +0000 (08:42 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 07:42:26 +0000 (10:42 +0300)
commiteeafc8e7dc36370cec9ff76defd4ecd289f790b6
treebfc74a2f091d87085a43a26c6554fbbe1b5e10fd
parent8d4f8c4edd5b2569c22cc2ef5f8334d3ff496caf
Revise Broadcast reference implementation (#2715)

* change tile reference implementation

* remove tile tests from interpreter manifest

* add repeats parameter to tile

* improve tile reference implementation

* add repeats parameter to tile reference call in tile evaluate method

* style apply

* include <numeric>

* add unnamed namespace to helper functions. Change stdio.h to cstdio. Change input_rank to be constant int

* add const reference to parameter repeats in tile reference function

* change createPitches function to use partial_sum instead of accumulate

* change a little bit createPitches function

* style-apply

* fix function naming

* style-apply

* fix calling functions name bug

* Add description of create_pitches function

* first version with debug logs

* reduce footprint

* single layer tests

* added more tests

* fixed handling bool type

* styles applied

* fix tile

* [ONLY DEBUG] print error scenario message

* fixed problem with e2e tests

* fixed casting of start_axis for numpy mode

Co-authored-by: pszmel <piotr.szmelczynski@intel.com>
14 files changed:
inference-engine/src/transformations/src/transformations/op_conversions/convert_broadcast3.cpp
inference-engine/tests/functional/plugin/cpu/shared_tests_instances/single_layer_tests/broadcast.cpp [new file with mode: 0644]
inference-engine/tests/functional/plugin/shared/include/single_layer_tests/broadcast.hpp [new file with mode: 0644]
inference-engine/tests/functional/plugin/shared/src/single_layer_tests/broadcast.cpp [new file with mode: 0644]
inference-engine/tests/ngraph_functions/include/ngraph_functions/builders.hpp
inference-engine/tests/ngraph_functions/src/broadcast.cpp [new file with mode: 0644]
ngraph/core/include/ngraph/op/util/broadcast_base.hpp
ngraph/core/reference/include/ngraph/runtime/opt_kernel/broadcast.hpp [deleted file]
ngraph/core/reference/include/ngraph/runtime/reference/broadcast.hpp
ngraph/core/reference/include/ngraph/runtime/reference/matmul.hpp
ngraph/core/reference/src/runtime/reference/broadcast.cpp [new file with mode: 0644]
ngraph/core/src/op/util/broadcast_base.cpp
ngraph/test/eval.cpp
ngraph/test/runtime/pass/opset1_downgrade.cpp