STT-tensorflow/tensorflow/workspace2.bzl
Christian Sigg e70a5f4243 Prevent buildifier warning in WORKSPACE file.
PiperOrigin-RevId: 354993799
Change-Id: If1ed5db7cb3f9ba82b179ed9070b027088ca0493
2021-02-01 12:06:13 -08:00

18 lines
742 B
Python

"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
load("//tensorflow:workspace.bzl", "tf_repositories")
def workspace():
# Check the bazel version before executing any repository rules, in case
# those rules rely on the version we require here.
check_bazel_version_at_least("1.0.0")
# Load tf_repositories() before loading dependencies for other repository so
# that dependencies like com_google_protobuf won't be overridden.
tf_repositories()
# Alias so it can be loaded without assigning to a different symbol to prevent
# shadowing previous loads and trigger a buildifier warning.
tf_workspace2 = workspace