mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-10-02 12:40:26 +08:00
log_abs_det doesnt change int he forward
This commit is contained in:
1 parent
6efcd6c5b9
commit
9ac375a89d
1 file changed
-2
@@ -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