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

Planar inverse with leaky relu #170

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Planar inverse with leaky relu #170

merged 2 commits into from
Aug 8, 2024

Conversation

danielward27
Copy link
Owner

A first pass on #169.

Copy link

@weiyaw weiyaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please double check the math of the log determinant?

us = self.get_act_scale() * relu_slope
denominator = 1 + self.weight @ us
psi = relu_slope * self.weight
log_det = -jnp.log(jnp.abs(1 + us @ psi))
Copy link

@weiyaw weiyaw Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inside the absolute value it is supposed to be 1 + us @ self.weight instead of 1 + us @ psi? I'm looking at Eq 12 of Rezende et al (2015) https://arxiv.org/pdf/1505.05770

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting that. I was halfway between us @ weight and u @ psi...

@danielward27 danielward27 merged commit a4bcab8 into main Aug 8, 2024
1 check passed
@danielward27 danielward27 deleted the planar_inverse branch August 8, 2024 10:58
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.

2 participants