diff options
author | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-19 16:59:48 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2021-04-27 17:37:11 +0100 |
commit | 5d955cf70ae0c5558d4f431f0fc6bd4552cd43a5 (patch) | |
tree | 4fb59200899808b8b008d6f48322d0d799b8b631 /cmake/GlobalConfig.cmake | |
parent | 4a621c43174b6bdd9dc0bff839b245bc2139d6a6 (diff) | |
download | armnn-5d955cf70ae0c5558d4f431f0fc6bd4552cd43a5.tar.gz |
IVGCVSW-5721 Remove the Tensorflow Parser from ArmNN
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ida37d3ee3a1af0c75aa905199bd861726c646846
Diffstat (limited to 'cmake/GlobalConfig.cmake')
-rw-r--r-- | cmake/GlobalConfig.cmake | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake index ca02284509..e932020bce 100644 --- a/cmake/GlobalConfig.cmake +++ b/cmake/GlobalConfig.cmake @@ -3,7 +3,6 @@ # Copyright 2020 NXP # SPDX-License-Identifier: MIT # -option(BUILD_TF_PARSER "Build Tensorflow parser" OFF) option(BUILD_ONNX_PARSER "Build Onnx parser" OFF) option(BUILD_UNIT_TESTS "Build unit tests" ON) option(BUILD_TESTS "Build test applications" OFF) @@ -157,7 +156,7 @@ endif() find_dependency(Threads) # Favour the protobuf passed on command line -if(BUILD_TF_PARSER OR BUILD_ONNX_PARSER) +if(BUILD_ONNX_PARSER) find_library(PROTOBUF_LIBRARY_DEBUG NAMES "protobufd" PATHS ${PROTOBUF_ROOT}/lib NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) @@ -177,21 +176,7 @@ if(BUILD_TF_PARSER OR BUILD_ONNX_PARSER) include_directories(SYSTEM "${PROTOBUF_INCLUDE_DIRS}") add_definitions(-DPROTOBUF_USE_DLLS) -endif() - -if(BUILD_TF_PARSER) - add_definitions(-DARMNN_TF_PARSER) - find_path(TF_GENERATED_SOURCES "tensorflow/core/protobuf/saved_model.pb.cc") - - # C++ sources generated for tf protobufs - file(GLOB_RECURSE TF_PROTOBUFS "${TF_GENERATED_SOURCES}/*.pb.cc") - - # C++ headers generated for tf protobufs - include_directories(SYSTEM "${TF_GENERATED_SOURCES}") -endif() - -if(BUILD_ONNX_PARSER) add_definitions(-DARMNN_ONNX_PARSER) find_path(ONNX_GENERATED_SOURCES "onnx/onnx.pb.cc") @@ -405,11 +390,6 @@ else() endif() - -if(NOT BUILD_TF_PARSER) - message(STATUS "Tensorflow parser support is disabled") -endif() - if(NOT BUILD_TF_LITE_PARSER) message(STATUS "Tensorflow Lite parser support is disabled") endif() |