Skip to content

Commit ca749c8

Browse files
QuinnMMcGarrycamiloCienet
authored andcommitted
Fix smm.py a_min parameter on jnp.clip()
1 parent 6df0420 commit ca749c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

axlearn/common/ssm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def initialize(
122122
* (math.log(cfg.dt_max) - math.log(cfg.dt_min))
123123
+ math.log(cfg.dt_min)
124124
)
125-
dt = jnp.clip(dt, a_min=cfg.dt_init_floor)
125+
dt = jnp.clip(dt, min=cfg.dt_init_floor)
126126
# Get inverse of softplus.
127127
inv_dt = dt + jnp.log(-jnp.expm1(-dt))
128128
return inv_dt

0 commit comments

Comments
 (0)