| """Provides the repository macro to import TFRT.""" |
| |
| load("//third_party:repo.bzl", "tf_http_archive") |
| |
| def repo(): |
| """Imports TFRT.""" |
| |
| # Attention: tools parse and update these lines. |
| TFRT_COMMIT = "26e733edd9c8c29d385c7b550c7313984293510a" |
| TFRT_SHA256 = "da6a4f959023fa1e45af50fc5010396ec17eb27c276d51182361f8320bb4d5c7" |
| |
| tf_http_archive( |
| name = "tf_runtime", |
| sha256 = TFRT_SHA256, |
| strip_prefix = "runtime-{commit}".format(commit = TFRT_COMMIT), |
| urls = [ |
| "http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT), |
| "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, |
| ) |