| """Provides the repository macro to import TFRT.""" |
| |
| load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") |
| |
| def repo(): |
| """Imports TFRT.""" |
| |
| # Attention: tools parse and update these lines. |
| TFRT_COMMIT = "7de75cda49615da754cfa0b78159377f5f91f053" |
| TFRT_SHA256 = "67003f00078e7ec8591bca5c4d09c3bc4a92f68b83dd3c8c0243483903dd792c" |
| |
| tf_http_archive( |
| name = "tf_runtime", |
| sha256 = TFRT_SHA256, |
| strip_prefix = "runtime-{commit}".format(commit = TFRT_COMMIT), |
| urls = tf_mirror_urls("https://github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT)), |
| # A patch file can be provided for atomic commits to both TF and TFRT. |
| # The job that bumps the TFRT_COMMIT also resets patch_file to 'None'. |
| patch_file = None, |
| ) |