[Filter/TFLite] Add XNNPACK meson build option
authorJulien Vuillaumier <julien.vuillaumier@nxp.com>
Wed, 24 Nov 2021 11:09:39 +0000 (12:09 +0100)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 30 Nov 2021 03:21:53 +0000 (12:21 +0900)
Signed-off-by: Julien Vuillaumier <julien.vuillaumier@nxp.com>
ext/nnstreamer/tensor_filter/meson.build
meson_options.txt

index aafa940..d681258 100644 (file)
@@ -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
   )
index 30d472b..1b1f417 100644 (file)
@@ -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)