mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
41 lines
1.6 KiB
Python
41 lines
1.6 KiB
Python
"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
|
|
|
|
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
|
|
load("@com_google_benchmark//:bazel/benchmark_deps.bzl", "benchmark_deps")
|
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
|
|
load("@local_xla//third_party/llvm:setup.bzl", "llvm_setup")
|
|
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
|
|
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
|
|
load("//third_party/android:android_configure.bzl", "android_configure")
|
|
|
|
# buildifier: disable=unnamed-macro
|
|
def workspace(with_rules_cc = True):
|
|
"""Loads a set of TensorFlow dependencies. To be used in a WORKSPACE file.
|
|
|
|
Args:
|
|
with_rules_cc: Unused, to be removed soon.
|
|
"""
|
|
llvm_setup(name = "llvm-project")
|
|
native.register_toolchains("@local_config_python//:py_toolchain")
|
|
rules_pkg_dependencies()
|
|
|
|
closure_repositories()
|
|
|
|
tf_http_archive(
|
|
name = "bazel_toolchains",
|
|
sha256 = "294cdd859e57fcaf101d4301978c408c88683fbc46fbc1a3829da92afbea55fb",
|
|
strip_prefix = "bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658",
|
|
urls = tf_mirror_urls(
|
|
"https://github.com/bazelbuild/bazel-toolchains/archive/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz",
|
|
),
|
|
)
|
|
|
|
android_configure(name = "local_config_android")
|
|
|
|
grpc_deps()
|
|
benchmark_deps()
|
|
|
|
# Alias so it can be loaded without assigning to a different symbol to prevent
|
|
# shadowing previous loads and trigger a buildifier warning.
|
|
tf_workspace1 = workspace
|