Skip to content

Commit

Permalink
log_abs_det doesnt change int he forward
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Jun 4, 2020
1 parent 6efcd6c commit 9ac375a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pts/modules/flows.py
Expand Up @@ -327,8 +327,6 @@ def forward(self, x, cond):
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):
Expand Down

0 comments on commit 9ac375a

Please sign in to comment.