forked from Volcomix/virtual-background
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD
40 lines (37 loc) · 1.13 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Description:
# TensorFlow Lite minimal inference tool.
load("@org_tensorflow//tensorflow/lite:build_def.bzl", "tflite_linkopts")
cc_binary(
name = "tflite",
srcs = ["tflite.cc"],
linkopts = tflite_linkopts() + [
"-s ENVIRONMENT='web'",
"-s ALLOW_MEMORY_GROWTH=1",
"-s USE_PTHREADS=0",
"-s MODULARIZE=1",
"-s EXPORT_NAME=createTFLiteModule",
],
deps = [
"@org_tensorflow//tensorflow/lite:framework",
"@org_tensorflow//tensorflow/lite:tflite_with_xnnpack",
"@org_tensorflow//tensorflow/lite/kernels:builtin_ops",
"@org_mediapipe//mediapipe/util/tflite/operations:transpose_conv_bias",
],
)
cc_binary(
name = "tflite-simd",
srcs = ["tflite.cc"],
linkopts = tflite_linkopts() + [
"-s ENVIRONMENT='web'",
"-s ALLOW_MEMORY_GROWTH=1",
"-s USE_PTHREADS=0",
"-s MODULARIZE=1",
"-s EXPORT_NAME=createTFLiteSIMDModule",
],
deps = [
"@org_tensorflow//tensorflow/lite:framework",
"@org_tensorflow//tensorflow/lite:tflite_with_xnnpack",
"@org_tensorflow//tensorflow/lite/kernels:builtin_ops",
"@org_mediapipe//mediapipe/util/tflite/operations:transpose_conv_bias",
],
)