Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568331404
  • Loading branch information
Jake VanderPlas authored and copybara-github committed Sep 25, 2023
1 parent dd822ef commit 75af72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmoe/evaluate/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _make_callback_fn(cls, *, apply_fn, loss_fn, label_pred_fn, datasets,
in_shardings=(), out_shardings=None, static_argnums=(0,))
def make_eval_state_pjit(seed):
rngs = utils.make_rngs(rng_keys, seed)
return EvalState(
return EvalState( # pytype: disable=wrong-arg-types # jnp-type
num=jnp.zeros((), dtype=jnp.float32),
sum_correct=jnp.zeros((), dtype=jnp.float32),
sum_loss=jnp.zeros((), dtype=jnp.float32),
Expand Down

0 comments on commit 75af72b

Please sign in to comment.