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
51ae5665
"docs/source/pt/tasks/sequence_classification.md" did not exist on "4f4e5ddbcbdcd9d6353fc27d0137ac887a7f2f25"
Unverified
Commit
51ae5665
authored
May 09, 2023
by
Furkan Akkurt
Committed by
GitHub
May 09, 2023
Browse files
Fix typo ; Update output.mdx (#23227)
parent
e02a8065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/main_classes/output.mdx
docs/source/en/main_classes/output.mdx
+1
-1
No files found.
docs/source/en/main_classes/output.mdx
View file @
51ae5665
...
...
@@ -31,7 +31,7 @@ outputs = model(**inputs, labels=labels)
```
The `outputs` object is a [`~modeling_outputs.SequenceClassifierOutput`], as we can see in the
documentation of that class below, it means it has an optional `loss`, a `logits` an optional `hidden_states` and
documentation of that class below, it means it has an optional `loss`, a `logits`
,
an optional `hidden_states` and
an optional `attentions` attribute. Here we have the `loss` since we passed along `labels`, but we don'
t
have
`
hidden_states
`
and
`
attentions
`
because
we
didn
't pass `output_hidden_states=True` or
`output_attentions=True`.
...
...
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