Fix missing tpu variable in benchmark_args_tf.py (#13968)

This commit is contained in:
Hardian Lawi 2021-10-12 11:30:03 +08:00 committed by GitHub
parent 990de2c17c
commit 85d69a7dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,7 @@ class TensorFlowBenchmarkArguments(BenchmarkArguments):
@cached_property
@tf_required
def _setup_tpu(self) -> Tuple["tf.distribute.cluster_resolver.TPUClusterResolver"]:
tpu = None
if self.tpu:
try:
if self.tpu_name: