Skip to content

Commit

Permalink
Merge pull request #195 from Bool1020/fix-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez authored Apr 11, 2024
2 parents 26052ff + 22d1599 commit bbc1763
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 bbc1763

Please sign in to comment.