Skip to content

Calling a different method post training #2781

Answered by IvyZX
shenoynikhil asked this question in General
Discussion options

You must be logged in to vote

You can directly access the parameters from state.params. Then you can call your own method with it.

For example for nn.Module's apply(), you can run inference like: model.apply({'params': state.params}, x)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shenoynikhil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants