Skip to content

Commit

Permalink
Fix missing tpu variable in benchmark_args_tf.py (huggingface#13968)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardianlawi authored and Alberto B茅gu茅 committed Jan 27, 2022
1 parent d7f5300 commit 4613584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/benchmark/benchmark_args_tf.py
Expand Up @@ -79,6 +79,7 @@ def __init__(self, **kwargs):
@cached_property
@tf_required
def _setup_tpu(self) -> Tuple["tf.distribute.cluster_resolver.TPUClusterResolver"]:
tpu = None
if self.tpu:
try:
if self.tpu_name:
Expand Down

0 comments on commit 4613584

Please sign in to comment.