From: Julien Vuillaumier Date: Wed, 24 Nov 2021 11:09:39 +0000 (+0100) Subject: [Filter/TFLite] Add XNNPACK meson build option X-Git-Tag: accepted/tizen/unified/20211222.230213~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7280ff15a0ce78b25322301618331ae471e6590d;p=platform%2Fupstream%2Fnnstreamer.git [Filter/TFLite] Add XNNPACK meson build option Signed-off-by: Julien Vuillaumier --- diff --git a/ext/nnstreamer/tensor_filter/meson.build b/ext/nnstreamer/tensor_filter/meson.build index aafa940..d681258 100644 --- a/ext/nnstreamer/tensor_filter/meson.build +++ b/ext/nnstreamer/tensor_filter/meson.build @@ -238,6 +238,10 @@ if tflite2_support_is_available tflite2_compile_args += '-DTFLITE_EXTERNAL_DELEGATE_SUPPORTED' endif + if get_option('tflite2-xnnpack-delegate-support') + tflite2_compile_args += '-DTFLITE_XNNPACK_DELEGATE_SUPPORTED' + endif + tflite2_extra_dep = declare_dependency( compile_args : tflite2_compile_args ) diff --git a/meson_options.txt b/meson_options.txt index 30d472b..1b1f417 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -29,6 +29,7 @@ option('enable-pytorch-use-gpu', type: 'boolean', value: false) # default value, option('tflite2-gpu-delegate-support', type: 'boolean', value: 'false') option('tflite2-nnapi-delegate-support', type: 'boolean', value: 'false') option('tflite2-external-delegate-support', type: 'boolean', value: 'false') +option('tflite2-xnnpack-delegate-support', type: 'boolean', value: 'false') option('enable-mediapipe', type: 'boolean', value: false) option('enable-env-var', type: 'boolean', value: true) option('enable-symbolic-link', type: 'boolean', value: true)