mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-07-03 07:11:13 +08:00
nits
This commit is contained in:
parent
3384d38a83
commit
4e94e87f57
@ -186,8 +186,7 @@ class Mamba2Block(nn.Module):
|
|||||||
|
|
||||||
# Update state - matches PyTorch implementation
|
# Update state - matches PyTorch implementation
|
||||||
next_state = (
|
next_state = (
|
||||||
next_state * mx.expand_dims(dAt, axis=(-1, -2)) +
|
next_state * mx.expand_dims(dAt, axis=(-1, -2)) + dBx
|
||||||
dBx
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Compute output
|
# Compute output
|
||||||
|
Loading…
Reference in New Issue
Block a user