Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
79838446
Unverified
Commit
79838446
authored
Jul 19, 2022
by
orgoro
Committed by
GitHub
Jul 19, 2022
Browse files
bugfix: div-->dim (#18135)
parent
e630dad5
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 @
79838446
...
@@ -2181,7 +2181,7 @@ class PerceiverBasicDecoder(PerceiverAbstractDecoder):
...
@@ -2181,7 +2181,7 @@ class PerceiverBasicDecoder(PerceiverAbstractDecoder):
if
self
.
concat_preprocessed_input
:
if
self
.
concat_preprocessed_input
:
if
inputs_without_pos
is
None
:
if
inputs_without_pos
is
None
:
raise
ValueError
(
"Value is required for inputs_without_pos if concat_preprocessed_input is True"
)
raise
ValueError
(
"Value is required for inputs_without_pos if concat_preprocessed_input is True"
)
pos_emb
=
torch
.
cat
([
inputs_without_pos
,
pos_emb
],
di
v
=-
1
)
pos_emb
=
torch
.
cat
([
inputs_without_pos
,
pos_emb
],
di
m
=-
1
)
return
pos_emb
return
pos_emb
...
...
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