related PR : #443
input0 = Input("input0", "TENSOR_FLOAT32", "{1, 2, 3, 4, 5}")
output0 = Output("output0", "TENSOR_FLOAT32", "{1, 2, 3, 4, 5}")
nnapi_gtest: /home/hyunjin/project/ONE/runtime/onert/core/src/ir/Shape.cc:86: onert::ir::Shape onert::ir::permuteShape(const onert::ir::Shape&, onert::ir::Layout, onert::ir::Layout): Assertion `shape.rank() <= 4' failed.
/home/hyunjin/project/ONE/tests/scripts/unittest.sh: line 70: 39243 Aborted (core dumped) $TEST_BIN $(get_gtest_option)
/home/hyunjin/project/ONE/Product/out/unittest/nnapi_gtest failed... return code: 134
The input rank is 5 In log.mod.py, but if it is greater than 4, Assert occurs.
How can I solve it?
@wateret, @ragmani, @hseok-oh During implementing log operation, @YiHyunJin found that permuteShape does not support rank >= 5.
Thus, I would like to modify the log nnapi test. (I guess all you are busy with other high priority tasks.) @YiHyunJin and I confirmed log test passed by modifying log.mod.py like the followings:
input0 = Input("input0", "TENSOR_FLOAT32", "{2, 3, 4, 5}")
output0 = Output("output0", "TENSOR_FLOAT32", "{2, 3, 4, 5}")
@glistening @YiHyunJin As @glistening commented, nnapi generated tests introduced for v1.2 uses rank > 4 (5 or 6). Instead of modifying exist test, we can introduce new test spec file: log_4D_nnfw.py
@YiHyunJin Please update your PR (#443) as @hseok-oh suggested. Then, I will remove draft label on behalf of you.
@glistening Yes
@YiHyunJin Please close this issue if this issue is resolved
Most helpful comment
@glistening @YiHyunJin As @glistening commented, nnapi generated tests introduced for v1.2 uses
rank > 4(5 or 6). Instead of modifying exist test, we can introduce new test spec file:log_4D_nnfw.py