Skip to content

Commit

Permalink
Fix bug which led to crash in kd-test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 701322169
  • Loading branch information
The kauldron Authors committed Nov 29, 2024
1 parent d3d5364 commit 3e3980b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kauldron/train/trainer_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def context_specs(self) -> context_lib.Context:
# Instead just creating the `spec` should be enough.
m_batch = data_utils.mock_batch_from_elem_spec(elem_spec, elem_sharding)

context = jax.eval_shape(
_, context = jax.eval_shape(
self.trainstep._step, # pylint: disable=protected-access
self.state_specs,
m_batch,
Expand Down

0 comments on commit 3e3980b

Please sign in to comment.