mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix missing tpu variable in benchmark_args_tf.py (#13968)
This commit is contained in:
parent
990de2c17c
commit
85d69a7dd1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user