STT-tensorflow/third_party/eigen3/workspace.bzl
Christian Sigg d53a69801a Polishing touches to workspace macros.
PiperOrigin-RevId: 360217268
Change-Id: I8d47c8e34e116f16011c48181f0487db48f86da8
2021-03-01 10:23:27 -08:00

22 lines
884 B
Python

"""Provides the repository macro to import Eigen."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports Eigen."""
# Attention: tools parse and update these lines.
EIGEN_COMMIT = "7f09d3487de97882585a72819ec7e0f9100c7121"
EIGEN_SHA256 = "6ae281a5a32d0f4185856e790c06f58858ffc16594483281621746ffb74d88a2"
tf_http_archive(
name = "eigen_archive",
build_file = "//third_party/eigen3:eigen_archive.BUILD",
sha256 = EIGEN_SHA256,
strip_prefix = "eigen-{commit}".format(commit = EIGEN_COMMIT),
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
"https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
],
)