| """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 = "00635cb951b67197100fa9e6162e8929cf97fdba" |
| TFRT_SHA256 = "2cb630a98250b0a75ed80acc2981ee802655271b45f173a5c86bf389c057cddb" |
| |
| 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, |
| ) |