Fix link error when linking runtime_run_android_nn_test with pureacl (#1900)
author이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Fri, 6 Jul 2018 08:14:00 +0000 (17:14 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 6 Jul 2018 08:14:00 +0000 (17:14 +0900)
Fix : #1899
1. add dummy APIs to fix link error

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
runtimes/pure_arm_compute/src/execution.cc

index ac757a7..a297da5 100644 (file)
@@ -450,3 +450,23 @@ int ANeuralNetworksExecution_startCompute(ANeuralNetworksExecution *execution,
 }
 
 void ANeuralNetworksExecution_free(ANeuralNetworksExecution *execution) {}
+
+// TODO: implement this. added to fix link error on test build.
+int ANeuralNetworksExecution_setInputFromMemory(ANeuralNetworksExecution *execution, int32_t index,
+                                                const ANeuralNetworksOperandType *type,
+                                                const ANeuralNetworksMemory *memory, size_t offset,
+                                                size_t length)
+{
+  assert(false);
+  return -1;
+}
+
+// TODO: implement this. added to fix link error on test build.
+int ANeuralNetworksExecution_setOutputFromMemory(ANeuralNetworksExecution *execution, int32_t index,
+                                                 const ANeuralNetworksOperandType *type,
+                                                 const ANeuralNetworksMemory *memory, size_t offset,
+                                                 size_t length)
+{
+  assert(false);
+  return -1;
+}