Skip to content

Commit

Permalink
add #TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
fattorib committed Nov 10, 2024
1 parent b0d8d98 commit 1f9990e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mamba/mamba_inner_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def backward(ctx, grad_output): # type: ignore
x.mT.contiguous(), conv1d_w, conv1d_b, x_grad.contiguous(), act=1
)

dx = torch.cat([dx_pre_conv.mT.contiguous(), dres], dim=-1)
dx = torch.cat([dx_pre_conv.mT.contiguous(), dres], dim=-1) #TODO: This is pretty slow, probably better to fuse with bwd on cc

return (
dx,
Expand Down

0 comments on commit 1f9990e

Please sign in to comment.