1"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it.""" 2 3load("//third_party/android:android_configure.bzl", "android_configure") 4load("//third_party/toolchains/preconfig/generate:archives.bzl", "bazel_toolchains_archive") 5load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") 6load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") 7 8def workspace(): 9 native.register_toolchains("@local_config_python//:py_toolchain") 10 11 closure_repositories() 12 bazel_toolchains_archive() 13 14 android_configure(name = "local_config_android") 15 16 grpc_deps() 17 18# Alias so it can be loaded without assigning to a different symbol to prevent 19# shadowing previous loads and trigger a buildifier warning. 20tf_workspace1 = workspace 21