Skip to content

Commit

Permalink
Fixed issue #181
Browse files Browse the repository at this point in the history
  • Loading branch information
Bool1020 committed Apr 11, 2024
1 parent 26052ff commit 22d1599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zeta/nn/modules/simple_mamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def selective_scan(self, u, delta, A, B, C, D):
)

# Perform selective scan (see scan_SSM() in The Annotated S4 [2])
x = torch.zeros((b, d_in, n))
x = torch.zeros((b, d_in, n), device=next(self.parameters()).device)
ys = []
for i in range(l):
x = deltaA[:, :, i] * x + deltaB_u[:, :, i]
Expand Down

0 comments on commit 22d1599

Please sign in to comment.