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
d6a677b1
Commit
d6a677b1
authored
Jan 08, 2020
by
Genta Indra Winata
Committed by
Lysandre Debut
Jan 07, 2020
Browse files
Fix typograpical errors (#2438)
parent
27c1b656
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
templates/adding_a_new_model/modeling_tf_xxx.py
templates/adding_a_new_model/modeling_tf_xxx.py
+1
-1
templates/adding_a_new_model/modeling_xxx.py
templates/adding_a_new_model/modeling_xxx.py
+1
-1
No files found.
templates/adding_a_new_model/modeling_tf_xxx.py
View file @
d6a677b1
...
@@ -176,7 +176,7 @@ class TFXxxMainLayer(tf.keras.layers.Layer):
...
@@ -176,7 +176,7 @@ class TFXxxMainLayer(tf.keras.layers.Layer):
####################################################
####################################################
class
TFXxxPreTrainedModel
(
TFPreTrainedModel
):
class
TFXxxPreTrainedModel
(
TFPreTrainedModel
):
""" An abstract class to handle weights initialization and
""" An abstract class to handle weights initialization and
a simple interface for dowloading and loading pretrained models.
a simple interface for dow
n
loading and loading pretrained models.
"""
"""
config_class
=
XxxConfig
config_class
=
XxxConfig
...
...
templates/adding_a_new_model/modeling_xxx.py
View file @
d6a677b1
...
@@ -173,7 +173,7 @@ XxxPooler = nn.Module
...
@@ -173,7 +173,7 @@ XxxPooler = nn.Module
class
XxxPreTrainedModel
(
PreTrainedModel
):
class
XxxPreTrainedModel
(
PreTrainedModel
):
""" An abstract class to handle weights initialization and
""" An abstract class to handle weights initialization and
a simple interface for dowloading and loading pretrained models.
a simple interface for dow
n
loading and loading pretrained models.
"""
"""
config_class
=
XxxConfig
config_class
=
XxxConfig
...
...
Prev
1
2
Next
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