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: 252055555
This commit is contained in:
A. Unique TensorFlower 2019-06-07 08:42:57 -07:00 committed by TensorFlower Gardener
parent 6984c3326a
commit 7b77d4868a
9 changed files with 36 additions and 37 deletions

View File

@ -1,9 +1,9 @@
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_cuda_library")
package( package(
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_cuda_library")
cc_library( cc_library(
name = "op_types", name = "op_types",
srcs = ["op_types.cc"], srcs = ["op_types.cc"],

View File

@ -1,7 +1,3 @@
package(
licenses = ["notice"], # Apache 2.0
)
load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
load("//tensorflow:tensorflow.bzl", "tf_cc_test") load("//tensorflow:tensorflow.bzl", "tf_cc_test")
load("//tensorflow:tensorflow.bzl", "tf_cuda_library") load("//tensorflow:tensorflow.bzl", "tf_cuda_library")
@ -10,6 +6,10 @@ load(
"tf_cuda_tests_tags", "tf_cuda_tests_tags",
) )
package(
licenses = ["notice"], # Apache 2.0
)
config_setting( config_setting(
name = "xsmm", name = "xsmm",
licenses = ["notice"], licenses = ["notice"],

View File

@ -1,12 +1,21 @@
package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_cuda_library") load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_cuda_library")
load( load(
"//tensorflow/core:platform/default/build_config.bzl", "//tensorflow/core:platform/default/build_config.bzl",
"tf_protos_grappler", "tf_protos_grappler",
) )
load(
"//tensorflow/core:platform/default/build_config.bzl",
"tf_additional_all_protos",
"tf_proto_library",
)
load(
"@local_config_cuda//cuda:build_defs.bzl",
"if_cuda",
)
package(
licenses = ["notice"], # Apache 2.0
)
filegroup( filegroup(
name = "graph_properties_testdata", name = "graph_properties_testdata",
@ -17,16 +26,6 @@ filegroup(
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
load(
"//tensorflow/core:platform/default/build_config.bzl",
"tf_additional_all_protos",
"tf_proto_library",
)
load(
"@local_config_cuda//cuda:build_defs.bzl",
"if_cuda",
)
tf_proto_library( tf_proto_library(
name = "op_performance_data", name = "op_performance_data",
srcs = ["op_performance_data.proto"], srcs = ["op_performance_data.proto"],

View File

@ -1,9 +1,9 @@
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
package( package(
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
cc_library( cc_library(
name = "graph_analyzer_lib", name = "graph_analyzer_lib",
srcs = [ srcs = [

View File

@ -1,9 +1,9 @@
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
package( package(
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
cc_library( cc_library(
name = "utils", name = "utils",
srcs = [ srcs = [

View File

@ -1,7 +1,3 @@
package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_kernel_library") load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_kernel_library")
load("//tensorflow:tensorflow.bzl", "tf_cc_test_mkl") load("//tensorflow:tensorflow.bzl", "tf_cc_test_mkl")
load("//tensorflow:tensorflow.bzl", "tf_cuda_cc_test") load("//tensorflow:tensorflow.bzl", "tf_cuda_cc_test")
@ -12,6 +8,10 @@ load(
"if_static", "if_static",
) )
package(
licenses = ["notice"], # Apache 2.0
)
cc_library( cc_library(
name = "static_schedule", name = "static_schedule",
srcs = ["static_schedule.cc"], srcs = ["static_schedule.cc"],

View File

@ -1,11 +1,11 @@
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
load("//tensorflow/core:platform/default/build_config.bzl", "tf_protos_all")
package( package(
default_visibility = ["//visibility:private"], default_visibility = ["//visibility:private"],
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
load("//tensorflow/core:platform/default/build_config.bzl", "tf_protos_all")
VECTORIZER_DEPS = [ VECTORIZER_DEPS = [
":vectorizer_registry", ":vectorizer_registry",
"//tensorflow/cc:ops", "//tensorflow/cc:ops",

View File

@ -1,13 +1,13 @@
package(
licenses = ["notice"], # Apache 2.0
)
load("//tensorflow:tensorflow.bzl", "tf_cc_test") load("//tensorflow:tensorflow.bzl", "tf_cc_test")
load( load(
"//tensorflow/core:platform/default/build_config.bzl", "//tensorflow/core:platform/default/build_config.bzl",
"tf_protos_grappler", "tf_protos_grappler",
) )
package(
licenses = ["notice"], # Apache 2.0
)
cc_library( cc_library(
name = "scc", name = "scc",
srcs = ["scc.cc"], srcs = ["scc.cc"],

View File

@ -1,9 +1,9 @@
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
package( package(
licenses = ["notice"], # Apache 2.0 licenses = ["notice"], # Apache 2.0
) )
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
cc_library( cc_library(
name = "graph_verifier", name = "graph_verifier",
hdrs = [ hdrs = [