-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
First Normalizing flows Tutorial #2542
First Normalizing flows Tutorial #2542
Conversation
…ng-flows-tutorial1
…ng-flows-tutorial1
There is one last bug I have to fix that is stopping sampling from the |
First review pass:
|
looks great! some comments:
|
I think the Those formulae seem to be fine on the nbviewer website, although I can't get it to update to my latest version... I think it will look fine when it's been converted to HTML by the doc system |
@fritzo I couldn't get the learning loop to work without using |
Okay, I've solved the bug! It was caused by conditioning on a minibatch of size 1000 and then not drawing a sample with a minibatch size that broadcasts over that... (This may be indicative of an API flaw) |
Should be good to go! 🥳 |
lgtm!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs fixes to .detach()
logic, I'll try to push to this branch...
…yro into normalizing-flows-tutorial1
OK, I've pushed three changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinjankowiak does the .clear_cache()
logic look ok to you?
I've added a tutorial that explains the basics of doing normalizing flows. In the process I discovered there is some change I've made to
Spline
that stops autodiff happening across steps (see the error message in the notebook)... I wanted to post the tutorial here before I've fixed this bug in case I can get some early feedback on the tutorial itself :)View notebook