Skip to content

Commit

Permalink
no more cb_states
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwh committed Nov 24, 2024
1 parent f181656 commit c8553b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def _dummy_step_info(step):
training_key=jax.random.PRNGKey(0),
is_trainable=True,
mp=None,
cb_states=(),
),
loss=0.0,
step_duration=0.0,
Expand Down Expand Up @@ -168,7 +167,7 @@ def _make_state(step, key):
optim = optax.adam(1e-4)
opt_state = optim.init(arrays_only(model))

return TrainerState(step, model, optim, opt_state, key, is_trainable=True, mp=None, cb_states=())
return TrainerState(step, model, optim, opt_state, key, is_trainable=True, mp=None)


def test_checkpoint_simple():
Expand Down

0 comments on commit c8553b4

Please sign in to comment.