Migrate the first macro usage to the toolchains repo.

PiperOrigin-RevId: 336670581
Change-Id: I7cf8f8d9b977ec59b97e7afcaeb5a94fd726d57e
This commit is contained in:
Amit Patankar 2020-10-12 08:45:42 -07:00 committed by TensorFlower Gardener
parent 0e6fb5fde5
commit adcefa251c
4 changed files with 14 additions and 1 deletions

View File

@ -91,7 +91,7 @@ load("//tensorflow:tensorflow.bzl", "tf_gen_op_libs")
load("//tensorflow:tensorflow.bzl", "if_nccl")
# buildifier: disable=same-origin-load
load("//tensorflow:tensorflow.bzl", "tensorflow_opensource_extra_deps")
load("@tf_toolchains//macros:cpp.bzl", "tensorflow_opensource_extra_deps")
# buildifier: disable=same-origin-load
load("//tensorflow:tensorflow.bzl", "tf_cc_test_gpu")

View File

@ -204,6 +204,7 @@ tensorflow/third_party/tensorrt/build_defs.bzl.tpl
tensorflow/third_party/tensorrt/tensorrt/include/tensorrt_config.h.tpl
tensorflow/third_party/tensorrt/tensorrt_configure.bzl
tensorflow/third_party/termcolor.BUILD
tensorflow/third_party/tf_toolchains.BUILD
tensorflow/third_party/tflite_mobilenet.BUILD
tensorflow/third_party/tflite_mobilenet_float.BUILD
tensorflow/third_party/tflite_mobilenet_quant.BUILD

View File

@ -1185,6 +1185,17 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
],
)
tf_http_archive(
name = "tf_toolchains",
sha256 = "eb175afa73e5a33d2b5d2aabcfde6c8c3395fd7001eb5ba765a5cd98cce714ba",
strip_prefix = "toolchains-0.0.2",
build_file = clean_dep("//third_party:tf_toolchains.BUILD"),
urls = [
"http://mirror.tensorflow.org/github.com/tensorflow/toolchains/archive/v0.0.2.tar.gz",
"https://github.com/tensorflow/toolchains/archive/v0.0.2.tar.gz",
],
)
def tf_bind():
"""Bind targets for some external repositories"""
##############################################################################

1
third_party/tf_toolchains.BUILD vendored Normal file
View File

@ -0,0 +1 @@
package(default_visibility = ["//visibility:public"])