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
6448396d
Commit
6448396d
authored
Sep 23, 2019
by
thomwolf
Browse files
fix roberta test
parent
1e47dee2
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_roberta.py
pytorch_transformers/modeling_tf_roberta.py
+1
-1
No files found.
pytorch_transformers/modeling_tf_roberta.py
View file @
6448396d
...
@@ -351,7 +351,7 @@ class TFRobertaForSequenceClassification(TFRobertaPreTrainedModel):
...
@@ -351,7 +351,7 @@ class TFRobertaForSequenceClassification(TFRobertaPreTrainedModel):
outputs
=
self
.
roberta
(
inputs
,
**
kwargs
)
outputs
=
self
.
roberta
(
inputs
,
**
kwargs
)
sequence_output
=
outputs
[
0
]
sequence_output
=
outputs
[
0
]
logits
=
self
.
classifier
(
sequence_output
,
training
=
training
)
logits
=
self
.
classifier
(
sequence_output
,
training
=
kwargs
.
get
(
'training'
,
False
)
)
outputs
=
(
logits
,)
+
outputs
[
2
:]
outputs
=
(
logits
,)
+
outputs
[
2
:]
...
...
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