2018-12-12 09:16:03 -05:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2022-04-06 14:43:56 +00:00
|
|
|
# Force a sufficiently new copy of @platforms, see https://github.com/bazelbuild/bazel/issues/15175 and
|
|
|
|
# https://github.com/google/jax/issues/10132. When our transitive dependencies aren't pulling in an
|
|
|
|
# old version, we can remove this (the current hypothesis is that the cause is in TFRT).
|
|
|
|
http_archive(
|
|
|
|
name = "platforms",
|
|
|
|
sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-12-12 09:16:03 -05:00
|
|
|
# To update TensorFlow to a new revision,
|
|
|
|
# a) update URL and strip_prefix to the new git commit hash
|
|
|
|
# b) get the sha256 hash of the commit by running:
|
|
|
|
# curl -L https://github.com/tensorflow/tensorflow/archive/<git hash>.tar.gz | sha256sum
|
|
|
|
# and update the sha256 with the result.
|
|
|
|
http_archive(
|
2019-02-28 20:25:09 -08:00
|
|
|
name = "org_tensorflow",
|
2022-04-06 23:56:41 +00:00
|
|
|
sha256 = "a491d6c2fac467956809d100fdeaeaada35103c724acebba1168f7cfd47f1209",
|
|
|
|
strip_prefix = "tensorflow-0d5668cbdc6b46d099bd3abd93374c09b2e8121f",
|
2019-02-28 20:25:09 -08:00
|
|
|
urls = [
|
2022-04-06 23:56:41 +00:00
|
|
|
"https://github.com/tensorflow/tensorflow/archive/0d5668cbdc6b46d099bd3abd93374c09b2e8121f.tar.gz",
|
2019-02-28 20:25:09 -08:00
|
|
|
],
|
2018-12-12 09:16:03 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
# For development, one can use a local TF repository instead.
|
|
|
|
# local_repository(
|
|
|
|
# name = "org_tensorflow",
|
|
|
|
# path = "tensorflow",
|
|
|
|
# )
|
|
|
|
|
2020-10-23 14:20:06 -07:00
|
|
|
load("//third_party/pocketfft:workspace.bzl", pocketfft = "repo")
|
|
|
|
pocketfft()
|
|
|
|
|
2021-01-15 16:22:48 -05:00
|
|
|
# Initialize TensorFlow's external dependencies.
|
2021-08-01 08:53:12 -07:00
|
|
|
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")
|
|
|
|
tf_workspace3()
|
|
|
|
|
|
|
|
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2")
|
|
|
|
tf_workspace2()
|
|
|
|
|
|
|
|
load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1")
|
|
|
|
tf_workspace1()
|
|
|
|
|
|
|
|
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0")
|
|
|
|
tf_workspace0()
|