• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Provides the repository macro to import Eigen."""
2
3load("//third_party:repo.bzl", "tf_http_archive")
4
5def repo():
6    """Imports Eigen."""
7
8    # Attention: tools parse and update these lines.
9    # LINT.IfChange
10    EIGEN_COMMIT = "5ad8b9bfe2bf75620bc89467c5cc051fc2a597df"
11    EIGEN_SHA256 = "b47c1f5e54961a4289b5c690a54d78b20ae0a769a8914d81cfea764018de9b48"
12    # LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/eigen.cmake)
13
14    tf_http_archive(
15        name = "eigen_archive",
16        build_file = "//third_party/eigen3:eigen_archive.BUILD",
17        sha256 = EIGEN_SHA256,
18        strip_prefix = "eigen-{commit}".format(commit = EIGEN_COMMIT),
19        urls = [
20            "https://storage.googleapis.com/mirror.tensorflow.org/gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
21            "https://gitlab.com/libeigen/eigen/-/archive/{commit}/eigen-{commit}.tar.gz".format(commit = EIGEN_COMMIT),
22        ],
23    )
24