Fix tf_workspace for projects use TensorFlow as an external repository.

PiperOrigin-RevId: 254752872
This commit is contained in:
A. Unique TensorFlower 2019-06-24 07:21:59 -07:00 committed by TensorFlower Gardener
parent 1cd4a2b5c8
commit dad4197fcf
2 changed files with 9 additions and 4 deletions

View File

@ -12,11 +12,11 @@ http_archive(
],
)
# Load tf_workspace() before loading dependencies for other repository so that
# dependencies like com_google_protobuf won't be overridden.
load("//tensorflow:workspace.bzl", "tf_workspace")
# Load tf_repositories() before loading dependencies for other repository so
# that dependencies like com_google_protobuf won't be overridden.
load("//tensorflow:workspace.bzl", "tf_repositories")
# Please add all new TensorFlow dependencies in workspace.bzl.
tf_workspace()
tf_repositories()
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")

View File

@ -55,6 +55,11 @@ def clean_dep(dep):
# path_prefix is no longer used.
# tf_repo_name is thought to be under consideration.
def tf_workspace(path_prefix = "", tf_repo_name = ""):
tf_repositories(path_prefix, tf_repo_name)
tf_bind()
# Define all external repositories required by TensorFlow
def tf_repositories(path_prefix = "", tf_repo_name = ""):
"""All external dependencies for TF builds."""
# Note that we check the minimum bazel version in WORKSPACE.