mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-06-27 18:06:19 +08:00
log_abs_det doesnt change int he forward
This commit is contained in:
@@ -327,8 +327,6 @@ class Flow(nn.Module):
|
||||
if self.scale is not None:
|
||||
x /= self.scale
|
||||
u, log_abs_det_jacobian = self.net(x, cond)
|
||||
if self.scale is not None:
|
||||
log_abs_det_jacobian -= torch.log(torch.abs(self.scale))
|
||||
return u, log_abs_det_jacobian
|
||||
|
||||
def inverse(self, u, cond):
|
||||
|
||||
Reference in New Issue
Block a user