xref: /aosp_15_r20/external/tensorflow/third_party/tf_runtime/workspace.bzl (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1"""Provides the repository macro to import TFRT."""
2
3load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
4
5def repo():
6    """Imports TFRT."""
7
8    # Attention: tools parse and update these lines.
9    TFRT_COMMIT = "9fb08850e9b44bb420a74050a4ecd338fc686141"
10    TFRT_SHA256 = "bb2eb0a8e5c2d6d3dfc253228ab3e244a7a3e95209238a5a39ca6e94ccf0de6b"
11
12    tf_http_archive(
13        name = "tf_runtime",
14        sha256 = TFRT_SHA256,
15        strip_prefix = "runtime-{commit}".format(commit = TFRT_COMMIT),
16        urls = tf_mirror_urls("https://github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT)),
17        # A patch file can be provided for atomic commits to both TF and TFRT.
18        # The job that bumps the TFRT_COMMIT also resets patch_file to 'None'.
19        patch_file = None,
20    )
21