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

Flow import bug #4

Open
wants to merge 3 commits into
base: flows
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/erf_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _call(self, x):
return torch.erfinv(x)

def _inverse(self, y):
return torch.erf(x)
return torch.erf(y)

def log_abs_det_jacobian(self, x, y):
return x**2
2 changes: 1 addition & 1 deletion example/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _call(self, x):
return torch.erfinv(x)

def _inverse(self, y):
return torch.erf(x)
return torch.erf(y)

def log_abs_det_jacobian(self, x, y):
return x**2
Expand Down
2 changes: 1 addition & 1 deletion schrodinet/wavefunction/wave_function_flow_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pyro.distributions as dist
from torch.distributions import constraints
import pyro.distributions.transforms as T
from normflow.core import NormalizingFlow
from normflows.core import NormalizingFlow


class GaussianTransform(dist.transforms.Transform):
Expand Down