Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the output of the model at each training round? #1519

Closed
lums199656 opened this issue Mar 24, 2021 · 1 comment
Closed

How to get the output of the model at each training round? #1519

lums199656 opened this issue Mar 24, 2021 · 1 comment

Comments

@lums199656
Copy link

Hi, I am training a GAN model. I want to convert the output of the generator to an array for operation at the end of each round of training. I tried for a long time but couldn't get an output of type array.
Thank you so much.

@ppwwyyxx
Copy link
Collaborator

Using the ProcessTensors callback https://tensorpack.readthedocs.io/en/latest/modules/callbacks.html#tensorpack.callbacks.ProcessTensors with the right tensor name, user can specify an arbitrary function that will be called with the value of the tensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants