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
f851fb55
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "c832f43a4dc01fbf55fa63eda1554912f01ac57a"
Commit
f851fb55
authored
Sep 10, 2019
by
thomwolf
Browse files
fixing error message
parent
50c6bc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/modeling_tf_bert.py
pytorch_transformers/modeling_tf_bert.py
+1
-1
No files found.
pytorch_transformers/modeling_tf_bert.py
View file @
f851fb55
...
@@ -113,7 +113,7 @@ def load_bert_pt_weights_in_tf2(tf_model, config, pytorch_checkpoint_path):
...
@@ -113,7 +113,7 @@ def load_bert_pt_weights_in_tf2(tf_model, config, pytorch_checkpoint_path):
tfo
=
tf_model
(
tf_inputs
,
training
=
False
)
# Make sure restore ops are run
tfo
=
tf_model
(
tf_inputs
,
training
=
False
)
# Make sure restore ops are run
logger
.
info
(
"Weights
not loaded
: {}"
.
format
(
all_pytorch_weights
))
logger
.
info
(
"Weights
or buffers not loaded from PyTorch model
: {}"
.
format
(
all_pytorch_weights
))
return
tf_model
return
tf_model
...
...
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