Skip to content

Commit c4508a8

Browse files
Androbindrpngx
authored andcommitted
Clean bazel all_files targets (tensorflow#15368)
* Clean bazel `all_files` targets * Fix sanity tests
1 parent 70c94c1 commit c4508a8

16 files changed

Lines changed: 251 additions & 1 deletion

File tree

tensorflow/BUILD

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,13 @@ filegroup(
454454
"//tensorflow/contrib/data/python/kernel_tests:all_files",
455455
"//tensorflow/contrib/data/python/ops:all_files",
456456
"//tensorflow/contrib/decision_trees/proto:all_files",
457+
"//tensorflow/contrib/deprecated:all_files",
457458
"//tensorflow/contrib/distributions:all_files",
458459
"//tensorflow/contrib/eager/proto:all_files",
459460
"//tensorflow/contrib/eager/python:all_files",
460461
"//tensorflow/contrib/estimator:all_files",
461462
"//tensorflow/contrib/factorization:all_files",
463+
"//tensorflow/contrib/factorization/examples:all_files",
462464
"//tensorflow/contrib/factorization/kernels:all_files",
463465
"//tensorflow/contrib/ffmpeg:all_files",
464466
"//tensorflow/contrib/ffmpeg/default:all_files",
@@ -469,6 +471,7 @@ filegroup(
469471
"//tensorflow/contrib/graph_editor:all_files",
470472
"//tensorflow/contrib/grid_rnn:all_files",
471473
"//tensorflow/contrib/hooks:all_files",
474+
"//tensorflow/contrib/hvx/clock_cycle_profiling:all_files",
472475
"//tensorflow/contrib/hvx/hvx_ops_support_checker:all_files",
473476
"//tensorflow/contrib/image:all_files",
474477
"//tensorflow/contrib/input_pipeline:all_files",
@@ -486,6 +489,7 @@ filegroup(
486489
"//tensorflow/contrib/layers/kernels:all_files",
487490
"//tensorflow/contrib/learn:all_files",
488491
"//tensorflow/contrib/learn/python/learn/datasets:all_files",
492+
"//tensorflow/contrib/legacy_seq2seq:all_files",
489493
"//tensorflow/contrib/libsvm:all_files",
490494
"//tensorflow/contrib/linalg:all_files",
491495
"//tensorflow/contrib/linear_optimizer:all_files",
@@ -511,15 +515,21 @@ filegroup(
511515
"//tensorflow/contrib/lookup:all_files",
512516
"//tensorflow/contrib/losses:all_files",
513517
"//tensorflow/contrib/makefile:all_files",
518+
"//tensorflow/contrib/memory_stats:all_files",
514519
"//tensorflow/contrib/meta_graph_transform:all_files",
515520
"//tensorflow/contrib/metrics:all_files",
516521
"//tensorflow/contrib/model_pruning:all_files",
522+
"//tensorflow/contrib/model_pruning/examples/cifar10:all_files",
523+
"//tensorflow/contrib/mpi:all_files",
517524
"//tensorflow/contrib/mpi_collectives:all_files",
525+
"//tensorflow/contrib/nccl:all_files",
518526
"//tensorflow/contrib/ndlstm:all_files",
519527
"//tensorflow/contrib/nearest_neighbor:all_files",
520528
"//tensorflow/contrib/nn:all_files",
521529
"//tensorflow/contrib/opt:all_files",
530+
"//tensorflow/contrib/periodic_resample:all_files",
522531
"//tensorflow/contrib/predictor:all_files",
532+
"//tensorflow/contrib/quantization:all_files",
523533
"//tensorflow/contrib/quantize:all_files",
524534
"//tensorflow/contrib/receptive_field:all_files",
525535
"//tensorflow/contrib/reduce_slice_ops:all_files",
@@ -588,17 +598,21 @@ filegroup(
588598
"//tensorflow/core/profiler/internal/advisor:all_files",
589599
"//tensorflow/core/util/ctc:all_files",
590600
"//tensorflow/core/util/tensor_bundle:all_files",
601+
"//tensorflow/examples/adding_an_op:all_files",
591602
"//tensorflow/examples/android:all_files",
592603
"//tensorflow/examples/benchmark:all_files",
593604
"//tensorflow/examples/get_started/regression:all_files",
594605
"//tensorflow/examples/how_tos/reading_data:all_files",
595606
"//tensorflow/examples/image_retraining:all_files",
596607
"//tensorflow/examples/label_image:all_files",
597608
"//tensorflow/examples/learn:all_files",
609+
"//tensorflow/examples/multibox_detector:all_files",
598610
"//tensorflow/examples/saved_model:all_files",
599611
"//tensorflow/examples/speech_commands:all_files",
600612
"//tensorflow/examples/tutorials/estimators:all_files",
613+
"//tensorflow/examples/tutorials/layers:all_files",
601614
"//tensorflow/examples/tutorials/mnist:all_files",
615+
"//tensorflow/examples/tutorials/monitors:all_files",
602616
"//tensorflow/examples/tutorials/word2vec:all_files",
603617
"//tensorflow/examples/wav_to_spectrogram:all_files",
604618
"//tensorflow/go:all_files",
@@ -621,6 +635,7 @@ filegroup(
621635
"//tensorflow/python/kernel_tests/random:all_files",
622636
"//tensorflow/python/ops/distributions:all_files",
623637
"//tensorflow/python/ops/linalg:all_files",
638+
"//tensorflow/python/ops/losses:all_files",
624639
"//tensorflow/python/profiler:all_files",
625640
"//tensorflow/python/profiler/internal:all_files",
626641
"//tensorflow/python/saved_model:all_files",
@@ -631,24 +646,30 @@ filegroup(
631646
"//tensorflow/tools/api/tests:all_files",
632647
"//tensorflow/tools/benchmark:all_files",
633648
"//tensorflow/tools/build_info:all_files",
649+
"//tensorflow/tools/ci_build/gpu_build:all_files",
634650
"//tensorflow/tools/common:all_files",
635651
"//tensorflow/tools/compatibility:all_files",
636652
"//tensorflow/tools/dist_test/server:all_files",
637653
"//tensorflow/tools/docker:all_files",
638654
"//tensorflow/tools/docker/notebooks:all_files",
639655
"//tensorflow/tools/docs:all_files",
640656
"//tensorflow/tools/git:all_files",
657+
"//tensorflow/tools/graph_transforms:all_files",
641658
"//tensorflow/tools/mlpbtxt:all_files",
642659
"//tensorflow/tools/proto_text:all_files",
643660
"//tensorflow/tools/quantization:all_files",
644661
"//tensorflow/tools/test:all_files",
645662
"//tensorflow/user_ops:all_files",
663+
"//third_party/eigen3:all_files",
664+
"//third_party/fft2d:all_files",
665+
"//third_party/flatbuffers:all_files",
646666
"//third_party/hadoop:all_files",
647667
"//third_party/mpi:all_files",
668+
"//third_party/mpi_collectives:all_files",
648669
"//third_party/sycl:all_files",
649670
"//third_party/sycl/sycl:all_files",
650671
],
651-
visibility = [":__subpackages__"],
672+
visibility = ["//visibility:public"],
652673
)
653674

654675
load(

tensorflow/contrib/eager/python/examples/rnn_ptb/rnn_ptb.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
Penn Treebank (PTB) dataset from:
2323
http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz
2424
"""
25+
26+
from __future__ import absolute_import
27+
from __future__ import division
28+
from __future__ import print_function
29+
2530
import argparse
2631
import os
2732
import sys

tensorflow/contrib/factorization/examples/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ tf_py_test(
2121
],
2222
tags = ["notsan"],
2323
)
24+
25+
filegroup(
26+
name = "all_files",
27+
srcs = glob(
28+
["**/*"],
29+
exclude = [
30+
"**/METADATA",
31+
"**/OWNERS",
32+
],
33+
),
34+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function

tensorflow/contrib/memory_stats/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
@@MaxBytesInUse
2020
"""
2121

22+
from __future__ import absolute_import
23+
from __future__ import division
24+
from __future__ import print_function
25+
2226
from tensorflow.contrib.memory_stats.python.ops.memory_stats_ops import BytesInUse
2327
from tensorflow.contrib.memory_stats.python.ops.memory_stats_ops import BytesLimit
2428
from tensorflow.contrib.memory_stats.python.ops.memory_stats_ops import MaxBytesInUse
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
16+
from __future__ import absolute_import
17+
from __future__ import division
18+
from __future__ import print_function

0 commit comments

Comments
 (0)