blob: e618b6380d0bb755509c324e10f1ab647e132756 [file] [log] [blame]
"""Provides the repository macro to import Eigen."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports Eigen."""
# Attention: tools parse and update these lines.
# LINT.IfChange
EIGEN_COMMIT = "34780d8bd13d0af0cf17a22789ef286e8512594d"
EIGEN_SHA256 = "e5da7faf0f603dac718fca8d6f564cd8ed57cfe79aa40d165b2393fe31b5f6f4"
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/eigen.cmake)
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 = tf_mirror_urls("https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT)),
)