[neurun] Revert to using const_cast for extendRank in Mul op (#4503)
author김수진/On-Device Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Wed, 27 Feb 2019 07:14:17 +0000 (16:14 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 27 Feb 2019 07:14:17 +0000 (16:14 +0900)
commit5d057eb725a94854ca05cd22739ab86803f5a931
tree42131c1b93bb98c824f00717705167605e700782
parent518e275d16f1f17bc6eb3c9ef20528a1c0128496
[neurun] Revert to using const_cast for extendRank in Mul op (#4503)

* [neurun] Revert to using const_cast for extendRank in Mul op

This commit reverts to using `const_cast` for `extendRank` in `Mul` op.
That's because we've figured out the current implementation treats `copy` of `shape` object not `reference`.
It makes the `shape` not extend actually.

It seems it was a coincidence to be run all of tests related `broadcasting`.
(We need to check the tests...)

* add TrivialTest.BroadcastMulTwo test

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
runtimes/neurun/src/backend/acl_cl/StageGenerator.cc
runtimes/neurun/src/model/operand/Object.h
tests/nnapi/nnapi_gtest.skip.armv7l-linux.neurun