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

Log determinant has wrong dimensions? #14

Closed
matejgrcic opened this issue Jul 19, 2020 · 1 comment
Closed

Log determinant has wrong dimensions? #14

matejgrcic opened this issue Jul 19, 2020 · 1 comment

Comments

@matejgrcic
Copy link

matejgrcic commented Jul 19, 2020

Issue
I've printed log_p and logdet returned by the model. It seems that log_p_sum has the size equal to the batch size (which is fine) but the logdet contains a single value. Should logdet have the same dimensions as log_p?

Code for reproducing
Add the following code to train.py line 120.
print(log_p.size(), logdet.size())

@rosinality
Copy link
Owner

If you use additive coupling and not affine coupling, logdet will not have batch dimensions.

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