Skip to content
Discussion options

You must be logged in to vote

I see two potential options.

  1. cache the forward output for a specific batch idx. Check the automatic optimization flow: https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html#automatic-optimization

  2. Use manual optimization. https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html#manual-optimization

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@cemde
Comment options

@tchaton
Comment options

@cemde
Comment options

Answer selected by cemde
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment