[nnfw-api] Merge custom op API implementation (#8340)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 21 Oct 2019 05:59:21 +0000 (14:59 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 21 Oct 2019 05:59:21 +0000 (14:59 +0900)
Move custom op API implementation into neurun/api

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/api/CMakeLists.txt
runtimes/neurun/api/CustomKernel.cc [moved from runtimes/neurun/frontend/common/src/CustomKernel.cc with 100% similarity]
runtimes/neurun/api/CustomKernel.h [moved from runtimes/neurun/frontend/common/include/CustomKernel.h with 100% similarity]
runtimes/neurun/api/CustomKernelRegistry.cc [moved from runtimes/neurun/frontend/common/src/CustomKernelRegistry.cc with 100% similarity]
runtimes/neurun/api/CustomKernelRegistry.h [moved from runtimes/neurun/frontend/common/include/CustomKernelRegistry.h with 100% similarity]
runtimes/neurun/frontend/common/CMakeLists.txt [deleted file]

index 2d1e55e..4ded7ad 100644 (file)
@@ -8,5 +8,4 @@ target_link_libraries(${NEURUN_DEV} PUBLIC neurun_core) # TODO Link PRIVATE neur
 target_link_libraries(${NEURUN_DEV} PRIVATE jsoncpp tflite_loader circle_loader ${LIB_PTHREAD})
 target_link_libraries(${NEURUN_DEV} PRIVATE nnfw_common)
 target_link_libraries(${NEURUN_DEV} PRIVATE nnfw_coverage)
-target_link_libraries(${NEURUN_DEV} PRIVATE frontend_custom_op_common)
 install(TARGETS ${NEURUN_DEV} DESTINATION lib)
diff --git a/runtimes/neurun/frontend/common/CMakeLists.txt b/runtimes/neurun/frontend/common/CMakeLists.txt
deleted file mode 100644 (file)
index 1d8ab3a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-file(GLOB_RECURSE SOURCES_COMMON_CUSTOM_OP "src/*.cc")
-
-set(CUSTOM_OP_COMMON_NAME frontend_custom_op_common)
-
-add_library(${CUSTOM_OP_COMMON_NAME} STATIC ${SOURCES_COMMON_CUSTOM_OP})
-target_link_libraries(${CUSTOM_OP_COMMON_NAME} PRIVATE neurun_core)
-target_link_libraries(${CUSTOM_OP_COMMON_NAME} PRIVATE nnfw-header)
-
-target_include_directories(${CUSTOM_OP_COMMON_NAME} PUBLIC include)
-
-set_property(TARGET ${CUSTOM_OP_COMMON_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)