[neurun] Move `kernel` to upper directory (#2071)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 25 Jul 2018 01:35:08 +0000 (10:35 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Wed, 25 Jul 2018 01:35:08 +0000 (10:35 +0900)
Move `kernel` directory to be the top level.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
21 files changed:
runtimes/neurun/CMakeLists.txt
runtimes/neurun/src/backend/acl_cl/StageGenerator.cc
runtimes/neurun/src/backend/cpu/StageGenerator.cc
runtimes/neurun/src/kernel/acl_cl/ConcatLayer.cc [moved from runtimes/neurun/src/internal/kernel/acl_cl/ConcatLayer.cc with 100% similarity]
runtimes/neurun/src/kernel/acl_cl/ConcatLayer.h [moved from runtimes/neurun/src/internal/kernel/acl_cl/ConcatLayer.h with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/AvgPoolLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/AvgPoolLayer.cc with 98% similarity]
runtimes/neurun/src/kernel/cpufallback/AvgPoolLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/AvgPoolLayer.h with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/ConcatLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/ConcatLayer.cc with 98% similarity]
runtimes/neurun/src/kernel/cpufallback/ConcatLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/ConcatLayer.h with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/ConvolutionLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/ConvolutionLayer.cc with 99% similarity]
runtimes/neurun/src/kernel/cpufallback/ConvolutionLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/ConvolutionLayer.h with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/FullyConnectedLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/FullyConnectedLayer.cc with 98% similarity]
runtimes/neurun/src/kernel/cpufallback/FullyConnectedLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/FullyConnectedLayer.h with 95% similarity]
runtimes/neurun/src/kernel/cpufallback/MaxPoolLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/MaxPoolLayer.cc with 98% similarity]
runtimes/neurun/src/kernel/cpufallback/MaxPoolLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/MaxPoolLayer.h with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/OperationUtils.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/OperationUtils.cc with 99% similarity]
runtimes/neurun/src/kernel/cpufallback/OperationUtils.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/OperationUtils.h with 100% similarity]
runtimes/neurun/src/kernel/cpufallback/ReshapeLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/ReshapeLayer.cc with 96% similarity]
runtimes/neurun/src/kernel/cpufallback/ReshapeLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/ReshapeLayer.h with 93% similarity]
runtimes/neurun/src/kernel/cpufallback/SoftMaxLayer.cc [moved from runtimes/neurun/src/internal/kernel/cpufallback/SoftMaxLayer.cc with 98% similarity]
runtimes/neurun/src/kernel/cpufallback/SoftMaxLayer.h [moved from runtimes/neurun/src/internal/kernel/cpufallback/SoftMaxLayer.h with 94% similarity]

index b766f67..8fbdec4 100644 (file)
@@ -9,11 +9,12 @@ add_subdirectory(src/backend)
 
 file(GLOB SOURCES "src/*.cc")
 file(GLOB_RECURSE SOURCES_INTERNAL "src/internal/*.cc")
+file(GLOB_RECURSE SOURCES_KERNEL "src/kernel/*.cc") # TODO should be built as a separate lib
 
 # TODO This must be built separately, just like "backend/cpu"
 file(GLOB_RECURSE SOURCES_BACKEND_ACL "src/backend/acl_cl/*.cc")
 
-set(SOURCES ${SOURCES} ${SOURCES_INTERNAL} ${SOURCES_BACKEND_ACL})
+set(SOURCES ${SOURCES} ${SOURCES_INTERNAL} ${SOURCES_BACKEND_ACL} ${SOURCES_KERNEL})
 
 # NOTE For now ARMCompute is necessary
 # TODO Remove required package below(should be optional)
index 3f7ad45..5de30f7 100644 (file)
@@ -7,7 +7,7 @@
 #include <arm_compute/runtime/CL/functions/CLFullyConnectedLayer.h>
 #include <arm_compute/runtime/CL/functions/CLSoftmaxLayer.h>
 
-#include "internal/kernel/acl_cl/ConcatLayer.h"
+#include "kernel/acl_cl/ConcatLayer.h"
 
 #include "internal/Padding.h"
 #include "internal/Model.h"
index d2e719d..d05d2a8 100644 (file)
@@ -3,13 +3,13 @@
 #include <stdexcept>
 
 #include "internal/Padding.h"
-#include "internal/kernel/cpufallback/ConvolutionLayer.h"
-#include "internal/kernel/cpufallback/AvgPoolLayer.h"
-#include "internal/kernel/cpufallback/MaxPoolLayer.h"
-#include "internal/kernel/cpufallback/ConcatLayer.h"
-#include "internal/kernel/cpufallback/FullyConnectedLayer.h"
-#include "internal/kernel/cpufallback/ReshapeLayer.h"
-#include "internal/kernel/cpufallback/SoftMaxLayer.h"
+#include "kernel/cpufallback/ConvolutionLayer.h"
+#include "kernel/cpufallback/AvgPoolLayer.h"
+#include "kernel/cpufallback/MaxPoolLayer.h"
+#include "kernel/cpufallback/ConcatLayer.h"
+#include "kernel/cpufallback/FullyConnectedLayer.h"
+#include "kernel/cpufallback/ReshapeLayer.h"
+#include "kernel/cpufallback/SoftMaxLayer.h"
 
 #include "logging.h"
 
@@ -23,7 +23,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -18,7 +18,7 @@
 #include "AvgPoolLayer.h"
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -18,7 +18,7 @@
 #include "ConcatLayer.h"
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -23,7 +23,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -1,7 +1,7 @@
 #include "ConvolutionLayer.h"
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -19,7 +19,7 @@
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
 #include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 #include <mutex>
 
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -1,7 +1,7 @@
 #include "MaxPoolLayer.h"
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -19,7 +19,7 @@
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
 #include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;
 
@@ -1,7 +1,7 @@
 #include "SoftMaxLayer.h"
 
 #include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 namespace internal
 {
@@ -6,7 +6,7 @@
 #include <arm_compute/runtime/IFunction.h>
 
 #include "internal/Model.h"
-#include "internal/kernel/cpufallback/OperationUtils.h"
+#include "kernel/cpufallback/OperationUtils.h"
 
 using namespace internal::kernel::cpu;