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: 253347520
This commit is contained in:
parent
652d3e7bc6
commit
3363047f97
@ -1,10 +1,10 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//tensorflow:internal"],
|
default_visibility = ["//tensorflow:internal"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "checker",
|
name = "checker",
|
||||||
hdrs = ["checker.h"],
|
hdrs = ["checker.h"],
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//visibility:public"],
|
default_visibility = ["//visibility:public"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "decode",
|
name = "decode",
|
||||||
hdrs = ["decode.h"],
|
hdrs = ["decode.h"],
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
|
||||||
|
|
||||||
py_library(
|
py_library(
|
||||||
name = "integration_scripts",
|
name = "integration_scripts",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//visibility:public"],
|
default_visibility = ["//visibility:public"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
|
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "preprocessor",
|
name = "preprocessor",
|
||||||
srcs = ["preprocessor.cc"],
|
srcs = ["preprocessor.cc"],
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# Description:
|
# Description:
|
||||||
# TensorFlow Lite microcontroller example.
|
# TensorFlow Lite microcontroller example.
|
||||||
|
|
||||||
package(
|
|
||||||
default_visibility = ["//visibility:public"],
|
|
||||||
licenses = ["notice"], # Apache 2.0
|
|
||||||
)
|
|
||||||
|
|
||||||
load(
|
load(
|
||||||
"//tensorflow/lite/experimental/micro/testing:micro_test.bzl",
|
"//tensorflow/lite/experimental/micro/testing:micro_test.bzl",
|
||||||
"tflite_micro_cc_test",
|
"tflite_micro_cc_test",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_visibility = ["//visibility:public"],
|
||||||
|
licenses = ["notice"], # Apache 2.0
|
||||||
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "simple_model_settings",
|
name = "simple_model_settings",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
||||||
|
load("//tensorflow/lite:build_def.bzl", "gen_selected_ops", "tflite_copts")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = [
|
default_visibility = [
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
@ -5,9 +8,6 @@ package(
|
|||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
|
|
||||||
load("//tensorflow/lite:build_def.bzl", "gen_selected_ops", "tflite_copts")
|
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
gen_selected_ops(
|
gen_selected_ops(
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
|
||||||
|
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
|
||||||
|
load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = [
|
default_visibility = [
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
@ -5,10 +9,6 @@ package(
|
|||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
|
|
||||||
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
|
|
||||||
load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts")
|
|
||||||
|
|
||||||
common_copts = ["-Wall"] + tflite_copts()
|
common_copts = ["-Wall"] + tflite_copts()
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//tensorflow:internal"],
|
default_visibility = ["//tensorflow:internal"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
@ -5,8 +7,6 @@ package(
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "py_test")
|
|
||||||
|
|
||||||
py_test(
|
py_test(
|
||||||
name = "meta_benchmark",
|
name = "meta_benchmark",
|
||||||
srcs = ["meta_benchmark.py"],
|
srcs = ["meta_benchmark.py"],
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//tensorflow:internal"],
|
default_visibility = ["//tensorflow:internal"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
@ -5,8 +7,6 @@ package(
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "py_test")
|
|
||||||
|
|
||||||
py_library(
|
py_library(
|
||||||
name = "dataset_serialization_test_base",
|
name = "dataset_serialization_test_base",
|
||||||
srcs = [
|
srcs = [
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# Tests of TensorFlow kernels written using the Python API.
|
# Tests of TensorFlow kernels written using the Python API.
|
||||||
|
|
||||||
|
load("//tensorflow:tensorflow.bzl", "tf_py_test")
|
||||||
|
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//tensorflow:internal"],
|
default_visibility = ["//tensorflow:internal"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_py_test")
|
|
||||||
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
|
||||||
|
|
||||||
tf_py_test(
|
tf_py_test(
|
||||||
name = "batch_test",
|
name = "batch_test",
|
||||||
size = "small",
|
size = "small",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
load("//tensorflow:tensorflow.bzl", "py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
default_visibility = ["//tensorflow:internal"],
|
default_visibility = ["//tensorflow:internal"],
|
||||||
licenses = ["notice"], # Apache 2.0
|
licenses = ["notice"], # Apache 2.0
|
||||||
@ -5,8 +7,6 @@ package(
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "py_test")
|
|
||||||
|
|
||||||
py_library(
|
py_library(
|
||||||
name = "nest",
|
name = "nest",
|
||||||
srcs = ["nest.py"],
|
srcs = ["nest.py"],
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# Description:
|
# Description:
|
||||||
# TensorFlow SavedModel.
|
# TensorFlow SavedModel.
|
||||||
|
|
||||||
|
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
||||||
|
load("//tensorflow:tensorflow.bzl", "tf_py_test")
|
||||||
|
|
||||||
package(
|
package(
|
||||||
# TODO(drpng): change that to //third_party/tensorflow:internal
|
# TODO(drpng): change that to //third_party/tensorflow:internal
|
||||||
# when we have migrated all users.
|
# when we have migrated all users.
|
||||||
@ -10,11 +13,6 @@ package(
|
|||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "cuda_py_test")
|
|
||||||
load("//tensorflow:tensorflow.bzl", "tf_py_test")
|
|
||||||
load("//tensorflow/core:platform/default/build_config.bzl", "tf_proto_library")
|
|
||||||
load("//tensorflow/core:platform/default/build_config.bzl", "tf_additional_all_protos")
|
|
||||||
|
|
||||||
py_library(
|
py_library(
|
||||||
name = "saved_model",
|
name = "saved_model",
|
||||||
srcs = ["saved_model.py"],
|
srcs = ["saved_model.py"],
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
# Description:
|
# Description:
|
||||||
# Scripts used to generate TensorFlow Python API.
|
# Scripts used to generate TensorFlow Python API.
|
||||||
|
|
||||||
package(
|
|
||||||
licenses = ["notice"], # Apache 2.0
|
|
||||||
)
|
|
||||||
|
|
||||||
load("//tensorflow:tensorflow.bzl", "py_test")
|
load("//tensorflow:tensorflow.bzl", "py_test")
|
||||||
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "TENSORFLOW_API_INIT_FILES")
|
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "TENSORFLOW_API_INIT_FILES")
|
||||||
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "TENSORFLOW_API_INIT_FILES_V1")
|
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "TENSORFLOW_API_INIT_FILES_V1")
|
||||||
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "KERAS_API_INIT_FILES")
|
load("//tensorflow/python/tools/api/generator:api_init_files.bzl", "KERAS_API_INIT_FILES")
|
||||||
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "KERAS_API_INIT_FILES_V1")
|
load("//tensorflow/python/tools/api/generator:api_init_files_v1.bzl", "KERAS_API_INIT_FILES_V1")
|
||||||
|
|
||||||
|
package(
|
||||||
|
licenses = ["notice"], # Apache 2.0
|
||||||
|
)
|
||||||
|
|
||||||
exports_files(
|
exports_files(
|
||||||
[
|
[
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
# Description:
|
# Description:
|
||||||
# Benchmark utility that can run on desktop and Android.
|
# Benchmark utility that can run on desktop and Android.
|
||||||
|
|
||||||
package(
|
|
||||||
default_visibility = ["//visibility:public"],
|
|
||||||
licenses = ["notice"], # Apache 2.0
|
|
||||||
)
|
|
||||||
|
|
||||||
load(
|
load(
|
||||||
"//tensorflow:tensorflow.bzl",
|
"//tensorflow:tensorflow.bzl",
|
||||||
"tf_cc_binary",
|
"tf_cc_binary",
|
||||||
@ -13,6 +8,11 @@ load(
|
|||||||
"tf_copts",
|
"tf_copts",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_visibility = ["//visibility:public"],
|
||||||
|
licenses = ["notice"], # Apache 2.0
|
||||||
|
)
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
|
Loading…
Reference in New Issue
Block a user