[Bugfix][Model] Fix Python 3.8 compatibility in Pixtral model by updating type annotations (#8490)
This commit is contained in:
parent
50e9ec41fc
commit
3724d5f6b5
@ -454,7 +454,7 @@ class Transformer(nn.Module):
|
||||
return x
|
||||
|
||||
|
||||
def position_meshgrid(patch_embeds_list: list[torch.Tensor], ) -> torch.Tensor:
|
||||
def position_meshgrid(patch_embeds_list: List[torch.Tensor], ) -> torch.Tensor:
|
||||
positions = torch.cat([
|
||||
torch.stack(
|
||||
torch.meshgrid(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user