mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 10:12:23 +06:00
bugfix: div-->dim (#18135)
This commit is contained in:
parent
e630dad555
commit
798384467b
@ -2181,7 +2181,7 @@ class PerceiverBasicDecoder(PerceiverAbstractDecoder):
|
||||
if self.concat_preprocessed_input:
|
||||
if inputs_without_pos is None:
|
||||
raise ValueError("Value is required for inputs_without_pos if concat_preprocessed_input is True")
|
||||
pos_emb = torch.cat([inputs_without_pos, pos_emb], div=-1)
|
||||
pos_emb = torch.cat([inputs_without_pos, pos_emb], dim=-1)
|
||||
|
||||
return pos_emb
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user