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
ae37ceac
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "bd3b599c12cfcf5ef517c5ffe526afbdbaa92539"
Unverified
Commit
ae37ceac
authored
Feb 08, 2021
by
Lysandre Debut
Committed by
GitHub
Feb 08, 2021
Browse files
Fix typo (#10064)
parent
9a0399e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py
...ame}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py
+1
-1
No files found.
templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py
View file @
ae37ceac
...
@@ -517,7 +517,7 @@ class TF{{cookiecutter.camelcase_modelname}}Encoder(tf.keras.layers.Layer):
...
@@ -517,7 +517,7 @@ class TF{{cookiecutter.camelcase_modelname}}Encoder(tf.keras.layers.Layer):
)
)
# Copied from transformers.models.bert.modeling_tf_bert.TFBertPredictionHead with Bert->{{cookiecutter.camelcase_modelname}}
# Copied from transformers.models.bert.modeling_tf_bert.TFBertPredictionHead
Transform
with Bert->{{cookiecutter.camelcase_modelname}}
class
TF
{{
cookiecutter
.
camelcase_modelname
}}
PredictionHeadTransform
(
tf
.
keras
.
layers
.
Layer
):
class
TF
{{
cookiecutter
.
camelcase_modelname
}}
PredictionHeadTransform
(
tf
.
keras
.
layers
.
Layer
):
def
__init__
(
self
,
config
:
{{
cookiecutter
.
camelcase_modelname
}}
Config
,
**
kwargs
):
def
__init__
(
self
,
config
:
{{
cookiecutter
.
camelcase_modelname
}}
Config
,
**
kwargs
):
super
().
__init__
(
**
kwargs
)
super
().
__init__
(
**
kwargs
)
...
...
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