Remove template runtime (#3845)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 6 Dec 2018 09:08:34 +0000 (18:08 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 6 Dec 2018 09:08:34 +0000 (18:08 +0900)
Remove experimental template runtime in runtimes/template

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
12 files changed:
runtimes/CMakeLists.txt
runtimes/template/CMakeLists.txt [deleted file]
runtimes/template/src/compilation.cc [deleted file]
runtimes/template/src/compilation.h [deleted file]
runtimes/template/src/event.cc [deleted file]
runtimes/template/src/event.h [deleted file]
runtimes/template/src/execution.cc [deleted file]
runtimes/template/src/execution.h [deleted file]
runtimes/template/src/memory.cc [deleted file]
runtimes/template/src/memory.h [deleted file]
runtimes/template/src/model.cc [deleted file]
runtimes/template/src/model.h [deleted file]

index a1214f7..4157458 100644 (file)
@@ -16,6 +16,5 @@ if(BUILD_RUNTIME_TESTS)
 endif(BUILD_RUNTIME_TESTS)
 
 if(NOT OBS_BUILD)
-  add_subdirectory(template)
   add_subdirectory(logging)
 endif(NOT OBS_BUILD)
diff --git a/runtimes/template/CMakeLists.txt b/runtimes/template/CMakeLists.txt
deleted file mode 100644 (file)
index 146824d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-file(GLOB_RECURSE SOURCES "src/*.cc")
-
-add_library(nnapi_template SHARED ${SOURCES})
-target_include_directories(nnapi_template PUBLIC ${NNFW_INCLUDE_DIR})
-set_target_properties(nnapi_template PROPERTIES OUTPUT_NAME neuralnetworks)
diff --git a/runtimes/template/src/compilation.cc b/runtimes/template/src/compilation.cc
deleted file mode 100644 (file)
index db3f3e1..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <NeuralNetworks.h>
-
-#include "compilation.h"
-
-int ANeuralNetworksCompilation_create(ANeuralNetworksModel *model,
-                                      ANeuralNetworksCompilation **compilation)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksCompilation_finish(ANeuralNetworksCompilation *compilation)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
diff --git a/runtimes/template/src/compilation.h b/runtimes/template/src/compilation.h
deleted file mode 100644 (file)
index 7a28742..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __COMPILATION_H__
-#define __COMPILATION_H__
-
-struct ANeuralNetworksCompilation
-{
-};
-
-#endif
diff --git a/runtimes/template/src/event.cc b/runtimes/template/src/event.cc
deleted file mode 100644 (file)
index 56b7946..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <NeuralNetworks.h>
-
-#include "event.h"
-
-int ANeuralNetworksEvent_wait(ANeuralNetworksEvent *event)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-void ANeuralNetworksEvent_free(ANeuralNetworksEvent *event)
-{
-  delete event;
-}
diff --git a/runtimes/template/src/event.h b/runtimes/template/src/event.h
deleted file mode 100644 (file)
index 7197f04..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __EVENT_H__
-#define __EVENT_H__
-
-struct ANeuralNetworksEvent
-{
-};
-
-#endif
diff --git a/runtimes/template/src/execution.cc b/runtimes/template/src/execution.cc
deleted file mode 100644 (file)
index 3a41819..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <NeuralNetworks.h>
-
-#include "execution.h"
-
-int ANeuralNetworksExecution_create(ANeuralNetworksCompilation *compilation,
-                                    ANeuralNetworksExecution **execution)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksExecution_setInput(ANeuralNetworksExecution *execution, int32_t index,
-                                      const ANeuralNetworksOperandType *type,
-                                      const void *buffer, size_t length)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksExecution_setOutput(ANeuralNetworksExecution *execution, int32_t index,
-                                       const ANeuralNetworksOperandType *type, void *buffer,
-                                       size_t length)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksExecution_startCompute(ANeuralNetworksExecution *execution,
-                                          ANeuralNetworksEvent **event)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-void ANeuralNetworksExecution_free(ANeuralNetworksExecution *execution)
-{
-}
diff --git a/runtimes/template/src/execution.h b/runtimes/template/src/execution.h
deleted file mode 100644 (file)
index 84d4e88..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __EXECUTION_H__
-#define __EXECUTION_H__
-
-struct ANeuralNetworksExecution
-{
-};
-
-#endif
diff --git a/runtimes/template/src/memory.cc b/runtimes/template/src/memory.cc
deleted file mode 100644 (file)
index 9579f6e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <NeuralNetworks.h>
-
-#include "memory.h"
-
-int ANeuralNetworksMemory_createFromFd(size_t size, int protect, int fd, size_t offset,
-                                       ANeuralNetworksMemory **memory)
-{
-  *memory = new ANeuralNetworksMemory{};
-
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-void ANeuralNetworksMemory_free(ANeuralNetworksMemory *memory)
-{
-  delete memory;
-}
diff --git a/runtimes/template/src/memory.h b/runtimes/template/src/memory.h
deleted file mode 100644 (file)
index a4fed82..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __MEMORY_H__
-#define __MEMORY_H__
-
-struct ANeuralNetworksMemory
-{
-};
-
-#endif // __MEMORY_H__
diff --git a/runtimes/template/src/model.cc b/runtimes/template/src/model.cc
deleted file mode 100644 (file)
index f2d65d2..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#include <NeuralNetworks.h>
-#include <NeuralNetworksEx.h>
-
-#include "model.h"
-
-int ANeuralNetworksModel_create(ANeuralNetworksModel **model)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-void ANeuralNetworksModel_free(ANeuralNetworksModel *model)
-{
-}
-
-int ANeuralNetworksModel_addOperand(ANeuralNetworksModel *model,
-                                    const ANeuralNetworksOperandType *type)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_setOperandValue(ANeuralNetworksModel *model, int32_t index,
-                                         const void *buffer, size_t length)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_setOperandValueFromMemory(ANeuralNetworksModel *model,
-                                                   int32_t index,
-                                                   const ANeuralNetworksMemory *memory,
-                                                   size_t offset, size_t length)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_addOperation(ANeuralNetworksModel *model,
-                                      ANeuralNetworksOperationType type, uint32_t inputCount,
-                                      const uint32_t *inputs, uint32_t outputCount,
-                                      const uint32_t *outputs)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_addOperationEx(ANeuralNetworksModel* model,
-                                        ANeuralNetworksOperationTypeEx type, uint32_t inputCount,
-                                        const uint32_t* inputs, uint32_t outputCount,
-                                        const uint32_t* outputs)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_identifyInputsAndOutputs(ANeuralNetworksModel *model,
-                                                  uint32_t inputCount,
-                                                  const uint32_t *inputs,
-                                                  uint32_t outputCount,
-                                                  const uint32_t *outputs)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
-
-int ANeuralNetworksModel_finish(ANeuralNetworksModel *model)
-{
-  return ANEURALNETWORKS_NO_ERROR;
-}
diff --git a/runtimes/template/src/model.h b/runtimes/template/src/model.h
deleted file mode 100644 (file)
index 8da8f74..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __MODEL_H__
-#define __MODEL_H__
-
-struct ANeuralNetworksModel
-{
-};
-
-#endif // __MODEL_H__