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
69749f3f
Commit
69749f3f
authored
May 18, 2019
by
Chris
Browse files
update to hf->tf args
parent
f1433db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
+1
-1
No files found.
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
View file @
69749f3f
...
...
@@ -108,4 +108,4 @@ if __name__ == "__main__":
model
=
BertModel
(
config
=
BertConfig
(
args
.
config_file_path
)
).
from_pretrained
(
args
.
pytorch_model_name
,
cache_dir
=
args
.
pytorch_model_dir
)
convert_hf_checkpoint_to_tf
(
model
=
model
,
ckpt_dir
=
args
.
tf_checkpoint_dir
)
\ No newline at end of file
convert_hf_checkpoint_to_tf
(
model
=
model
,
ckpt_dir
=
args
.
tf_checkpoint_dir
)
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