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
f1f23ad1
"docs/source/vscode:/vscode.git/clone" did not exist on "4acd87ff4e6a363b47d13b8a960b4b8340a3d615"
Commit
f1f23ad1
authored
Oct 02, 2019
by
VictorSanh
Committed by
Victor SANH
Oct 03, 2019
Browse files
fix buf in convert_pt_chkpt_to_tf2
parent
2a91f607
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
transformers/convert_pytorch_checkpoint_to_tf2.py
transformers/convert_pytorch_checkpoint_to_tf2.py
+1
-0
No files found.
transformers/convert_pytorch_checkpoint_to_tf2.py
View file @
f1f23ad1
...
...
@@ -228,6 +228,7 @@ if __name__ == "__main__":
convert_all_pt_checkpoints_to_tf
(
args
.
model_type
.
lower
()
if
args
.
model_type
is
not
None
else
None
,
args
.
tf_dump_path
,
model_shortcut_names_or_path
=
[
args
.
pytorch_checkpoint_path
]
if
args
.
pytorch_checkpoint_path
is
not
None
else
None
,
config_shortcut_names_or_path
=
[
args
.
config_file
]
if
args
.
config_file
is
not
None
else
None
,
compare_with_pt_model
=
args
.
compare_with_pt_model
,
use_cached_models
=
args
.
use_cached_models
,
only_convert_finetuned_models
=
args
.
only_convert_finetuned_models
)
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