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
c88b11c5
Unverified
Commit
c88b11c5
authored
Feb 10, 2023
by
steventk-g
Committed by
GitHub
Feb 10, 2023
Browse files
Add _mp_fn to run_mae.py for XLA testing (#21551)
Update run_mae.py
parent
b20147a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
examples/pytorch/image-pretraining/run_mae.py
examples/pytorch/image-pretraining/run_mae.py
+5
-0
No files found.
examples/pytorch/image-pretraining/run_mae.py
View file @
c88b11c5
...
...
@@ -384,5 +384,10 @@ def main():
trainer
.
create_model_card
(
**
kwargs
)
def
_mp_fn
(
index
):
# For xla_spawn (TPUs)
main
()
if
__name__
==
"__main__"
:
main
()
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