Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
85d69a7d
"vscode:/vscode.git/clone" did not exist on "965e98dc54c4853b34b3a49810f24856a9fcdba8"
Unverified
Commit
85d69a7d
authored
Oct 12, 2021
by
Hardian Lawi
Committed by
GitHub
Oct 11, 2021
Browse files
Fix missing tpu variable in benchmark_args_tf.py (#13968)
parent
990de2c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/benchmark/benchmark_args_tf.py
src/transformers/benchmark/benchmark_args_tf.py
+1
-0
No files found.
src/transformers/benchmark/benchmark_args_tf.py
View file @
85d69a7d
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment