You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would we implement normalizing flows / Transforms in Funsor?
As a first guess, each transform would be a funsor with one free variable of the same domain as its output, and we would have a .inv attribute like torch.distributions.Transform.inv to get the inverse transform. Additionally there would be rules for
eager substitution t(x) which simply calls the forward transform
inverse followed by eager substitution t.inv(x) which calls the inverse transform
How would we implement normalizing flows / Transforms in Funsor?
As a first guess, each transform would be a funsor with one free variable of the same domain as its output, and we would have a
.inv
attribute liketorch.distributions.Transform.inv
to get the inverse transform. Additionally there would be rules fort(x)
which simply calls the forward transformt.inv(x)
which calls the inverse transformDelta
sI think we could implement this as a single class that took a PyTorch/NumPyro transform object
cc @stefanwebb
The text was updated successfully, but these errors were encountered: