Skip to content

Commit

Permalink
filter_tensorflow: new Tensorflow Lite filter plugin! (#2511)
Browse files Browse the repository at this point in the history
Signed-off-by: Masoud Koleini <masoud.koleini@arm.com>
  • Loading branch information
koleini committed Oct 7, 2020
1 parent b8053b7 commit 5c054aa
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ option(FLB_FILTER_THROTTLE_SIZE "Enable throttle size filter" No)
option(FLB_FILTER_NEST "Enable nest filter" Yes)
option(FLB_FILTER_LUA "Enable Lua scripting filter" Yes)
option(FLB_FILTER_RECORD_MODIFIER "Enable record_modifier filter" Yes)
option(FLB_FILTER_TENSORFLOW "Enable tensorflow filter" No)

# Debug callbacks
option(FLB_HTTP_CLIENT_DEBUG "Enable HTTP Client debug callbacks" No)
Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ REGISTER_FILTER_PLUGIN("filter_aws")
REGISTER_FILTER_PLUGIN("filter_record_modifier")
REGISTER_FILTER_PLUGIN("filter_throttle")
REGISTER_FILTER_PLUGIN("filter_throttle_size")
REGISTER_FILTER_PLUGIN("filter_tensorflow")

if(FLB_REGEX)
REGISTER_FILTER_PLUGIN("filter_kubernetes")
Expand Down
6 changes: 6 additions & 0 deletions plugins/filter_tensorflow/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set(src
tensorflow.c)

FLB_PLUGIN(filter_tensorflow "${src}" "")
target_include_directories(flb-plugin-filter_tensorflow PRIVATE ${Tensorflow_DIR})
target_link_libraries(flb-plugin-filter_tensorflow -ltensorflowlite_c)
Loading

0 comments on commit 5c054aa

Please sign in to comment.