Last active
December 18, 2023 13:58
-
-
Save mwitiderrick/14a1a8a629ffb1b418fa23f046cf6420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@jax.jit | |
def eval_step(state, batch): | |
images, labels = batch | |
logits = CNN().apply({'params': state.params}, images) | |
return compute_metrics(logits=logits, labels=labels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment