Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
3a556b0f
Unverified
Commit
3a556b0f
authored
Aug 10, 2020
by
Alexander Measure
Committed by
GitHub
Aug 10, 2020
Browse files
Update modeling_tf_utils.py (#6372)
fix typo: ckeckpoint->checkpoint
parent
1bbc54a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_tf_utils.py
src/transformers/modeling_tf_utils.py
+1
-1
No files found.
src/transformers/modeling_tf_utils.py
View file @
3a556b0f
...
@@ -645,7 +645,7 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin):
...
@@ -645,7 +645,7 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin):
else
:
else
:
logger
.
warning
(
logger
.
warning
(
f
"All the weights of
{
model
.
__class__
.
__name__
}
were initialized from the model checkpoint at
{
pretrained_model_name_or_path
}
.
\n
"
f
"All the weights of
{
model
.
__class__
.
__name__
}
were initialized from the model checkpoint at
{
pretrained_model_name_or_path
}
.
\n
"
f
"If your task is similar to the task the model of the c
k
eckpoint was trained on, "
f
"If your task is similar to the task the model of the c
h
eckpoint was trained on, "
f
"you can already use
{
model
.
__class__
.
__name__
}
for predictions without further training."
f
"you can already use
{
model
.
__class__
.
__name__
}
for predictions without further training."
)
)
if
len
(
error_msgs
)
>
0
:
if
len
(
error_msgs
)
>
0
:
...
...
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