Skip to content

Commit

Permalink
run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fattorib committed Nov 10, 2024
1 parent 1f9990e commit f169af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mamba/mamba_inner_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ 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) #TODO: This is pretty slow, probably better to fuse with bwd on cc
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 f169af9

Please sign in to comment.