Adjust structure of all BUILD files to recommended style (https://docs.bazel.build/versions/master/skylark/build-style.html#file-structure), moving loads to top.

PiperOrigin-RevId: 252067239
This commit is contained in:
A. Unique TensorFlower 2019-06-07 09:54:20 -07:00 committed by TensorFlower Gardener
parent 2276117720
commit 3e1573b90b
24 changed files with 78 additions and 80 deletions

View File

@ -1,10 +1,6 @@
# Description:
# C API for TensorFlow, for use by client language bindings.
package(
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
@ -15,6 +11,10 @@ load(
)
load("//tensorflow:tensorflow.bzl", "tf_cuda_cc_test")
package(
licenses = ["notice"], # Apache 2.0
)
# -----------------------------------------------------------------------------
# Public targets

View File

@ -1,10 +1,6 @@
# Description:
# Experimental C APIs for TensorFlow.
package(
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"tf_copts",
@ -12,6 +8,10 @@ load(
)
load("//tensorflow:tensorflow.bzl", "tf_cuda_cc_test")
package(
licenses = ["notice"], # Apache 2.0
)
tf_cuda_library(
name = "rendezvous_internal",
srcs = [

View File

@ -1,13 +1,13 @@
# Description:
# CLIF wrappers for TensorFlow SavedModels.
load("//tensorflow/core:platform/default/build_config.bzl", "tf_py_clif_cc")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow/core:platform/default/build_config.bzl", "tf_py_clif_cc")
tf_py_clif_cc(
name = "loader",
srcs = ["loader.clif"],

View File

@ -1,5 +1,7 @@
# Description: Operations defined for XRT
load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test")
package(
default_visibility = [
"//tensorflow:internal",
@ -8,8 +10,6 @@ package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test")
cc_library(
name = "xrt_grpc_eager_client",
srcs = ["xrt_grpc_eager_client.cc"],

View File

@ -1,3 +1,8 @@
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
)
package(
default_visibility = [
"//tensorflow:internal",
@ -7,11 +12,6 @@ package(
exports_files(["LICENSE"])
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
)
cc_library(
name = "remote_tensor_handle",
hdrs = ["remote_tensor_handle.h"],

View File

@ -1,6 +1,8 @@
# Description:
# This directory contains common quantile utilities used in boosted_trees.
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
@ -8,8 +10,6 @@ package(
exports_files(["LICENSE"])
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
# Quantiles
cc_library(

View File

@ -1,17 +1,17 @@
# Description:
# OpKernels for tf.data
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
"tf_kernel_library",
)
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
# TODO(mrry): Remove this empty forwarding library.
cc_library(
name = "dataset",

View File

@ -1,3 +1,8 @@
load(
"//tensorflow:tensorflow.bzl",
"tf_kernel_library",
)
# Description:
# Kernel implementations using Neon intrinsics.
#
@ -6,11 +11,6 @@ package(
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"tf_kernel_library",
)
tf_kernel_library(
name = "neon_depthwise_conv_op",
hdrs = [

View File

@ -1,13 +1,13 @@
# Description:
# OpKernels for tensor forest ops.
load("//tensorflow:tensorflow.bzl", "tf_kernel_library")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_kernel_library")
cc_library(
name = "resources",
srcs = ["resources.cc"],

View File

@ -1,13 +1,13 @@
# Description:
# Libraries for storing tensors in SQL databases.
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_copts")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_copts")
cc_library(
name = "sqlite",
srcs = ["sqlite.cc"],

View File

@ -1,12 +1,12 @@
load("//tensorflow:tensorflow.bzl", "if_not_windows", "tf_cc_test")
load("//tensorflow/lite:build_def.bzl", "tflite_cc_shared_object", "tflite_copts")
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "if_not_windows", "tf_cc_test")
load("//tensorflow/lite:build_def.bzl", "tflite_cc_shared_object", "tflite_copts")
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
exports_files(glob([
"testdata/*.bin",
"testdata/*.pb",

View File

@ -2,13 +2,13 @@
# Java Native Interface (JNI) library intended for implementing the
# TensorFlow Lite GPU delegate Java API using the TensorFlow Lite CC library.
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
cc_library(
name = "native",
srcs = ["nnapi_delegate_jni.cc"],

View File

@ -1,3 +1,9 @@
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
load(
"//tensorflow/lite/experimental/micro/testing:micro_test.bzl",
"tflite_micro_cc_test",
)
package(
default_visibility = [
"//visibility:public",
@ -5,12 +11,6 @@ package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
load(
"//tensorflow/lite/experimental/micro/testing:micro_test.bzl",
"tflite_micro_cc_test",
)
cc_library(
name = "micro_ops",
srcs = [

View File

@ -1,16 +1,15 @@
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow/lite:build_def.bzl",
"tflite_copts",
"tflite_jni_binary",
)
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
filegroup(
name = "assets",
srcs = [

View File

@ -1,10 +1,10 @@
load("//tensorflow:tensorflow.bzl", "py_test")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "py_test")
py_library(
name = "interpreter",
srcs = [

View File

@ -1,3 +1,5 @@
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
package(
default_visibility = [
"//visibility:public",
@ -5,8 +7,6 @@ package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
cc_library(
name = "android_required_build_flags",
srcs = ["android_required_build_flags.cc"],

View File

@ -1,6 +1,9 @@
# Description:
# BenchmarkModel Android harness for TensorFlow Lite benchmarks.
load("//tensorflow/lite:build_def.bzl", "tflite_jni_binary")
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
package(
default_visibility = ["//visibility:private"],
licenses = ["notice"], # Apache 2.0
@ -8,9 +11,6 @@ package(
exports_files(["LICENSE"])
load("//tensorflow/lite:build_def.bzl", "tflite_jni_binary")
load("@build_bazel_rules_android//android:rules.bzl", "android_binary")
# See README.md for details about building and executing this benchmark.
android_binary(
name = "benchmark_model",

View File

@ -13,13 +13,13 @@
# limitations under the License.
# ==============================================================================
load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts")
common_linkopts = tflite_linkopts() + select({
"//conditions:default": [],
"//tensorflow:android": [

View File

@ -1,13 +1,13 @@
# Description:
# Kernel tests for Boosted Trees.
load("//tensorflow:tensorflow.bzl", "tf_py_test")
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_py_test")
filegroup(
name = "all_files",
srcs = glob(

View File

@ -1,3 +1,6 @@
load("//tensorflow:tensorflow.bzl", "cuda_py_tests")
load("//tensorflow:tensorflow.bzl", "py_test") # @unused
package(
default_visibility = ["//tensorflow:internal"],
licenses = ["notice"], # Apache 2.0
@ -5,9 +8,6 @@ package(
exports_files(["LICENSE"])
load("//tensorflow:tensorflow.bzl", "cuda_py_tests")
load("//tensorflow:tensorflow.bzl", "py_test") # @unused
py_library(
name = "test_util",
srcs = ["test_util.py"],

View File

@ -1,6 +1,9 @@
# Description:
# Tools for manipulating TensorFlow graphs.
load("//tensorflow:tensorflow.bzl", "py_test")
load("//tensorflow:tensorflow.bzl", "py_binary")
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
@ -8,9 +11,6 @@ package(
exports_files(["LICENSE"])
load("//tensorflow:tensorflow.bzl", "py_test")
load("//tensorflow:tensorflow.bzl", "py_binary")
# Transitive dependencies of this target will be included in the pip package.
py_library(
name = "tools_pip",

View File

@ -4,6 +4,7 @@ load(
"//tensorflow:tensorflow.bzl",
"py_test",
)
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
package(
default_visibility = ["//tensorflow/tools/api:__subpackages__"],
@ -15,8 +16,6 @@ exports_files([
"API_UPDATE_WARNING.txt",
])
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
py_test(
name = "api_compatibility_test",
srcs = ["api_compatibility_test.py"],

View File

@ -1,11 +1,6 @@
# Description:
# Utilities that perform useful transformations on graphs
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"if_not_v2",
@ -16,6 +11,11 @@ load(
"tf_py_test",
)
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
exports_files(["LICENSE"])
cc_library(

View File

@ -1,17 +1,17 @@
# Description:
# Utilities that perform useful transformations on graphs
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_binary",
"tf_cuda_library",
)
package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
)
exports_files(["LICENSE"])
tf_cuda_library(