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
8de1faea
Commit
8de1faea
authored
May 22, 2019
by
Chris
Browse files
update to hf->tf args
parent
d0adab2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_pretrained_bert/convert_pytorch_checkpoint_to_tf.py
pytorch_pretrained_bert/convert_pytorch_checkpoint_to_tf.py
+1
-1
No files found.
pytorch_pretrained_bert/convert_pytorch_checkpoint_to_tf.py
View file @
8de1faea
...
...
@@ -22,7 +22,7 @@ import tensorflow as tf
from
pytorch_pretrained_bert.modeling
import
BertConfig
,
BertModel
def
convert_pytorch_checkpoint_to_tf
(
model
:
type
(
BertModel
)
,
ckpt_dir
:
str
):
def
convert_pytorch_checkpoint_to_tf
(
model
:
BertModel
,
ckpt_dir
:
str
):
"""
:param model:BertModel Pytorch model instance to be converted
...
...
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