Skip to content

Commit

Permalink
🩹 Fix FFJTransform without context
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-rozet committed Feb 9, 2023
1 parent 0ad5a1d commit 06089ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zuko/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def forward(self, y: Tensor = None) -> Transform:
return FreeFormJacobianTransform(
f=partial(self.f, y=y),
time=self.time,
phi=(y, *self.ode.parameters()),
phi=self.ode.parameters() if y is None else (y, *self.ode.parameters()),
exact=self.exact,
)

Expand Down

0 comments on commit 06089ed

Please sign in to comment.