Fix Perceiver docs (#14917)

This commit is contained in:
Qing 2021-12-24 18:28:47 +08:00 committed by GitHub
parent 116829900a
commit 705ca7f21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1114,7 +1114,7 @@ class PerceiverForSequenceClassification(PerceiverPreTrainedModel):
>>> model = PerceiverForSequenceClassification.from_pretrained('deepmind/language-perceiver')
>>> text = "hello world"
>>> inputs = tokenizer(images=image, return_tensors="pt").input_ids
>>> inputs = tokenizer(text, return_tensors="pt").input_ids
>>> outputs = model(inputs=inputs)
>>> logits = outputs.logits
```"""