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

split up sample() to allow backwards pass #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

dribnet
Copy link

@dribnet dribnet commented Jan 4, 2022

This refactor takes the existing sample() call and splits it into subroutines disabling @torch.no_grad() to enable optimisation of x. Could be further cleaned up, but this version is working well currently with downstream code.

@dribnet
Copy link
Author

dribnet commented Jan 15, 2022

(this branch has been caught up, but the CLIP submodule dependency was also removed in f96d121. I can further clean this up by reverting this commit and flatten this history if you are interested in incorporating these changes)

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

Successfully merging this pull request may close these issues.

1 participant