mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
doc: mismatch between pooler/d_output (#14641)
The model outputs a pooler_output whereas the doctype examples were using a pooled_output.
This commit is contained in:
parent
0f3f045ebd
commit
df085d8ea8
@ -717,7 +717,7 @@ class CLIPTextModel(CLIPPreTrainedModel):
|
||||
|
||||
>>> outputs = model(**inputs)
|
||||
>>> last_hidden_state = outputs.last_hidden_state
|
||||
>>> pooled_output = outputs.pooled_output # pooled (EOS token) states
|
||||
>>> pooled_output = outputs.pooler_output # pooled (EOS token) states
|
||||
"""
|
||||
return self.text_model(
|
||||
input_ids=input_ids,
|
||||
@ -827,7 +827,7 @@ class CLIPVisionModel(CLIPPreTrainedModel):
|
||||
|
||||
>>> outputs = model(**inputs)
|
||||
>>> last_hidden_state = outputs.last_hidden_state
|
||||
>>> pooled_output = outputs.pooled_output # pooled CLS states
|
||||
>>> pooled_output = outputs.pooler_output # pooled CLS states
|
||||
"""
|
||||
return self.vision_model(
|
||||
pixel_values=pixel_values,
|
||||
|
Loading…
Reference in New Issue
Block a user