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
0a8b4d65
Commit
0a8b4d65
authored
May 02, 2019
by
Chris
Browse files
added file to convert pytorch->tf
parent
968c1b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
+1
-2
No files found.
pytorch_pretrained_bert/convert_hf_checkpoint_to_tf.py
View file @
0a8b4d65
...
@@ -21,7 +21,6 @@ import numpy as np
...
@@ -21,7 +21,6 @@ import numpy as np
from
pytorch_pretrained_bert.modeling
import
BertConfig
,
BertModel
from
pytorch_pretrained_bert.modeling
import
BertConfig
,
BertModel
def
convert_hf_checkpoint_to_tf
(
model
:
BertModel
,
ckpt_dir
:
str
):
def
convert_hf_checkpoint_to_tf
(
model
:
BertModel
,
ckpt_dir
:
str
):
"""
"""
...
...
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