From 6df2d5dd957c26d70212564bc166404b43aabbf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9E=A5=EC=A7=80=EC=84=AD/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84?= =?utf8?q?=EC=9E=90?= Date: Fri, 31 Aug 2018 15:54:50 +0900 Subject: [PATCH] Add sourcing tensor more than 5 dimensions (#2529) This commit adds sourcing tensor more than 5 dimensions. Signed-off-by: jiseob.jang --- runtimes/pure_arm_compute/src/execution.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtimes/pure_arm_compute/src/execution.cc b/runtimes/pure_arm_compute/src/execution.cc index b1c287b..4100969 100644 --- a/runtimes/pure_arm_compute/src/execution.cc +++ b/runtimes/pure_arm_compute/src/execution.cc @@ -362,7 +362,10 @@ int ANeuralNetworksExecution_setInput(ANeuralNetworksExecution *execution, int32 } else { - throw std::runtime_error{"Not supported, yet"}; + // NOTE TensorSource is much slower than specialized Source(s) + const auto &operand_shape = shape.asTensor(); + + asTensorSource(execution, input_type, index, operand_shape, buffer, length); } return ANEURALNETWORKS_NO_ERROR; -- 2.7.4