Is this the correct way to pass Haiku model for evaluation? #12056
Unanswered
bigyankarki
asked this question in
General
Replies: 1 comment 1 reply
-
From a first look this seems to be correct, if Since this is about Haiku and not JAX, could you open an issue on our issue tracker (https://github.com/deepmind/dm-haiku/issues) to follow up? Feel free to @ tag me in the issue and I can follow up there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I initialized the Haiku model as follows:
I do my gradient updates as follows:
and send the model and params for evaluation
evaluate(model, params, st, rng)
and do a forward pass and calculate loss and accuracy
For evaluation:
and I just call evaluate(model, params, st, rng).
Is this a right way to pass model? Because it seems, although loss seems to be decreasing during training, it is stable during evaluation. So, I suspect that updated params are not being used.
Beta Was this translation helpful? Give feedback.
All reactions