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
f0340b30
Unverified
Commit
f0340b30
authored
Jun 09, 2020
by
Hamza Harkous
Committed by
GitHub
Jun 09, 2020
Browse files
Removes from the of the parent of TFRobertaClassificationHead (#4884)
Co-authored-by:
Hamza Harkous
<
harkous@google.com
>
parent
02e5f796
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_roberta.py
src/transformers/modeling_tf_roberta.py
+1
-1
No files found.
src/transformers/modeling_tf_roberta.py
View file @
f0340b30
...
...
@@ -321,7 +321,7 @@ class TFRobertaClassificationHead(tf.keras.layers.Layer):
"""Head for sentence-level classification tasks."""
def
__init__
(
self
,
config
,
**
kwargs
):
super
().
__init__
(
config
,
**
kwargs
)
super
().
__init__
(
**
kwargs
)
self
.
dense
=
tf
.
keras
.
layers
.
Dense
(
config
.
hidden_size
,
kernel_initializer
=
get_initializer
(
config
.
initializer_range
),
...
...
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