Skip to content

Commit

Permalink
Update modules.py
Browse files Browse the repository at this point in the history
making code suitable for different batch sizes.
  • Loading branch information
OmerFarukAtli authored Dec 3, 2024
1 parent 8500de8 commit 12f6739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def forward(self, x):

concatenated = torch.cat((out1, out2), dim=1)
output = self.conv1d(concatenated)
mamba_out = output.view(1, 256, 64, 64)
mamba_out = output.view(-1, 256, 64, 64)


return mamba_out
Expand Down

0 comments on commit 12f6739

Please sign in to comment.