[nnc] Added Broadcasting (#2417)
authorАндрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 <a.shedko@samsung.com>
Thu, 13 Dec 2018 17:36:52 +0000 (20:36 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Thu, 13 Dec 2018 17:36:52 +0000 (20:36 +0300)
commit21bfb9ad24ba3b0eb5644d8931d4bd281aa51b97
tree5018e50a2ff698329379ee768edf0482b35a1244
parentddf2f5a2f12ee558e6300ec0bba9b8abbaba3f8e
[nnc] Added Broadcasting (#2417)

- Added Broadcasting to interpreter and shapeInference.
- Fixed interpreter impl and placed const in correct location
- Added broadcasting to softBackend
- Added tests and cpp backend implementations for broadcasted `+, -, *, /, max`
- Added generic implementation of Elementwise Broadcast for ease of
- fixed codestyle; removed shape inference file

Signed-off-by: Andrei Shedko <a.shedko@samsung.com>
13 files changed:
contrib/nnc/core/CMakeLists.txt
contrib/nnc/core/modelIR/TensorVariant.cpp
contrib/nnc/core/modelIR/operations/ElementwiseOp.cpp [new file with mode: 0644]
contrib/nnc/include/core/modelIR/TensorVariant.h
contrib/nnc/include/core/modelIR/operations/ElementwiseOp.h
contrib/nnc/passes/interpreter/Interpreter.cpp
contrib/nnc/passes/interpreter/ops/ElementwiseOp.cpp [deleted file]
contrib/nnc/passes/soft_backend/SBSerializer.cpp
contrib/nnc/passes/soft_backend/code_snippets/cpp_common_funcs.def
contrib/nnc/passes/soft_backend/code_snippets/cpp_elementwise.def
contrib/nnc/passes/soft_backend/code_snippets/cpp_operations.def
contrib/nnc/unittests/core/ShapeInference.cpp
contrib/nnc/unittests/soft_backend/CPPOperations.cpp