Skip to content

Commit

Permalink
Remove with_select_tf_ops build flag
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 266401347
  • Loading branch information
jdduke authored and tensorflower-gardener committed Aug 30, 2019
1 parent 957450f commit e57a567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
17 changes: 2 additions & 15 deletions tensorflow/lite/BUILD
Expand Up @@ -29,14 +29,6 @@ config_setting(
},
)

# Enables inclusion of select TensorFlow kernels via the TF Lite Flex delegate.
# WARNING: This build flag is experimental and subject to change.
config_setting(
name = "with_select_tf_ops",
define_values = {"with_select_tf_ops": "true"},
visibility = ["//visibility:public"],
)

TFLITE_DEFAULT_COPTS = if_not_windows([
"-Wall",
"-Wno-comment",
Expand Down Expand Up @@ -222,15 +214,10 @@ cc_library(
"//tensorflow/lite/c:c_api_internal",
"//tensorflow/lite/core/api",
"//tensorflow/lite/delegates/nnapi:nnapi_delegate",
"//tensorflow/lite/experimental/resource_variable",
"//tensorflow/lite/nnapi:nnapi_implementation",
"//tensorflow/lite/schema:schema_fbs",
"//tensorflow/lite/experimental/resource_variable:resource_variable",
] + select({
":with_select_tf_ops": [
"//tensorflow/lite/delegates/flex:delegate",
],
"//conditions:default": [],
}),
],
)

cc_library(
Expand Down
11 changes: 4 additions & 7 deletions tensorflow/lite/g3doc/guide/ops_select.md
Expand Up @@ -79,10 +79,10 @@ tflite_convert \
```

When building and running `tflite_convert` directly with `bazel`, please pass
`--define=with_select_tf_ops=true` as an additional argument.
`--define=tflite_convert_with_select_tf_ops=true` as an additional argument.

```
bazel run --define=with_select_tf_ops=true tflite_convert -- \
bazel run --define=tflite_convert_with_select_tf_ops=true tflite_convert -- \
--output_file=/tmp/foo.tflite \
--graph_def_file=/tmp/foo.pb \
--input_arrays=input \
Expand Down Expand Up @@ -179,11 +179,8 @@ TensorFlow ops library can be included and enabled as follows:

* Enable monolithic builds if necessary by adding the `--config=monolithic`
build flag.
* Do one of the following:
* Include the `--define=with_select_tf_ops=true` build flag in the `bazel
build` invocation when building TensorFlow Lite.
* Add the TensorFlow ops delegate library dependency to the build
dependencies: `tensorflow/lite/delegates/flex:delegate`.
* Add the TensorFlow ops delegate library dependency to the build
dependencies: `tensorflow/lite/delegates/flex:delegate`.

Note that the necessary `TfLiteDelegate` will be installed automatically when
creating the interpreter at runtime as long as the delegate is linked into the
Expand Down

0 comments on commit e57a567

Please sign in to comment.