-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added separate patch to enable the external delegate for label_image && Update READMe.md Type: Documentation Signed-off-by: Feiyue Chen <[email protected]>
- Loading branch information
1 parent
ead72b2
commit b3e10e4
Showing
2 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/tensorflow/lite/examples/label_image/CMakeLists.txt b/tensorflow/lite/examples/label_image/CMakeLists.txt | ||
index f3edeb40a31..b21fa42ea03 100644 | ||
--- a/tensorflow/lite/examples/label_image/CMakeLists.txt | ||
+++ b/tensorflow/lite/examples/label_image/CMakeLists.txt | ||
@@ -55,6 +55,11 @@ if(TFLITE_ENABLE_GPU) | ||
) | ||
endif() # TFLITE_ENABLE_GPU | ||
|
||
+if(TFLITE_ENABLE_EXTERNAL_DELEGATE) | ||
+ list(APPEND TFLITE_LABEL_IMAGE_SRCS | ||
+ ${TFLITE_SOURCE_DIR}/tools/delegates/external_delegate_provider.cc) | ||
+endif() | ||
+ | ||
add_executable(label_image | ||
EXCLUDE_FROM_ALL | ||
${TFLITE_LABEL_IMAGE_SRCS} |