Skip to content

Commit

Permalink
[NFC] Change uses of get_compatible_with_cloud to get_compatible_with…
Browse files Browse the repository at this point in the history
…_portable.

PiperOrigin-RevId: 547054827
  • Loading branch information
ddunl authored and tensorflower-gardener committed Jul 11, 2023
1 parent 2782215 commit 8a3ee99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions tensorflow/lite/delegates/flex/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ load(
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
load("//tensorflow/lite:special_rules.bzl", "internal_visibility_allowlist")
load("//tensorflow/lite/delegates/flex:build_def.bzl", "tflite_flex_cc_library", "tflite_flex_shared_library")
load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_cloud")
load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")

default_visibility = [
"//tensorflow/compiler/mlir/lite:__subpackages__",
Expand All @@ -37,7 +37,7 @@ cc_library(
name = "buffer_map",
srcs = ["buffer_map.cc"],
hdrs = ["buffer_map.h"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tf_opts_nortti_if_lite_protos(),
features = tf_features_nolayering_check_if_ios(),
deps = [
Expand All @@ -58,7 +58,7 @@ cc_library(
name = "buffer_map_util",
srcs = ["buffer_map_util.cc"],
hdrs = ["buffer_map_util.h"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tf_opts_nortti_if_lite_protos(),
features = tf_features_nolayering_check_if_ios(),
deps = [
Expand Down Expand Up @@ -106,7 +106,7 @@ tf_cc_test(
# )
tflite_flex_cc_library(
name = "delegate",
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
visibility = ["//visibility:public"],
)

Expand All @@ -133,7 +133,7 @@ cc_library(
srcs = [
"delegate_symbol.cc",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tflite_copts(),
visibility = ["//visibility:public"],
deps = [
Expand All @@ -155,7 +155,7 @@ cc_library(
hdrs = [
"delegate.h",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tflite_copts() + tf_opts_nortti_if_android(),
features = tf_features_nolayering_check_if_ios(),
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -208,7 +208,7 @@ cc_library(
name = "delegate_data",
srcs = ["delegate_data.cc"],
hdrs = ["delegate_data.h"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tf_opts_nortti_if_android(),
features = tf_features_nolayering_check_if_ios(),
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -259,7 +259,7 @@ tf_cc_test(
cc_library(
name = "subgraph_resource",
hdrs = ["subgraph_resource.h"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
features = tf_features_nolayering_check_if_ios(),
deps = [
"//tensorflow/lite:cc_api_experimental",
Expand Down Expand Up @@ -312,7 +312,7 @@ cc_library(
name = "util",
srcs = ["util.cc"],
hdrs = ["util.h"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
features = tf_features_nolayering_check_if_ios(),
#TODO(b/206038955): Consider restrict the visibility to '//third_party/fcp/client:__subpackages__'.
visibility = ["//visibility:public"],
Expand Down Expand Up @@ -360,7 +360,7 @@ cc_library(
"allowlisted_flex_ops.h",
"allowlisted_flex_ops_internal.h",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
features = tf_features_nolayering_check_if_ios(),
visibility = internal_visibility_allowlist(),
deps = if_mobile([
Expand Down Expand Up @@ -403,7 +403,7 @@ cc_library(
cc_library(
name = "tflite_subgraph_execute",
srcs = ["tflite_subgraph_execute.cc"],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
copts = tf_opts_nortti_if_android(),
features = tf_features_nolayering_check_if_ios(),
deps = [
Expand Down
8 changes: 4 additions & 4 deletions tensorflow/lite/tools/versioning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
)
load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_cloud")
load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")

package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
Expand All @@ -20,7 +20,7 @@ cc_library(
"op_version.h",
"runtime_version.h",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
deps = [
":op_signature",
"//tensorflow/core:tflite_portable_logging",
Expand Down Expand Up @@ -62,7 +62,7 @@ cc_library(
hdrs = [
"op_signature.h",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
deps = [
"//tensorflow/lite:stderr_reporter",
"//tensorflow/lite/core/api",
Expand Down Expand Up @@ -101,7 +101,7 @@ cc_library(
hdrs = [
"gpu_compatibility.h",
],
compatible_with = get_compatible_with_cloud(),
compatible_with = get_compatible_with_portable(),
deps = [
":op_signature",
"//tensorflow/lite:builtin_op_data",
Expand Down

0 comments on commit 8a3ee99

Please sign in to comment.