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
705ca7f2
Unverified
Commit
705ca7f2
authored
Dec 24, 2021
by
Qing
Committed by
GitHub
Dec 24, 2021
Browse files
Fix Perceiver docs (#14917)
parent
11682990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/perceiver/modeling_perceiver.py
src/transformers/models/perceiver/modeling_perceiver.py
+1
-1
No files found.
src/transformers/models/perceiver/modeling_perceiver.py
View file @
705ca7f2
...
...
@@ -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
```"""
...
...
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