From 51ae566511280251e879ea6c3d69a56a7d3e83dc Mon Sep 17 00:00:00 2001 From: Furkan Akkurt <71407287+furkanakkurt1335@users.noreply.github.com> Date: Tue, 9 May 2023 16:19:38 +0300 Subject: [PATCH] Fix typo ; Update output.mdx (#23227) --- docs/source/en/main_classes/output.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/main_classes/output.mdx b/docs/source/en/main_classes/output.mdx index ca4e8dfc0a..921031671c 100644 --- a/docs/source/en/main_classes/output.mdx +++ b/docs/source/en/main_classes/output.mdx @@ -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`.