Skip to content

Commit 3f8c537

Browse files
Remove the unused code in modules.py (#346)
1 parent 35e4a17 commit 3f8c537

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

modules.py

-17
Original file line numberDiff line numberDiff line change
@@ -578,20 +578,3 @@ def forward(self, x, x_mask, g=None, reverse=False):
578578
x1 = (x1 - m) * torch.exp(-logs) * x_mask
579579
x = torch.cat([x0, x1], 1)
580580
return x
581-
582-
x1, logabsdet = piecewise_rational_quadratic_transform(
583-
x1,
584-
unnormalized_widths,
585-
unnormalized_heights,
586-
unnormalized_derivatives,
587-
inverse=reverse,
588-
tails="linear",
589-
tail_bound=self.tail_bound,
590-
)
591-
592-
x = torch.cat([x0, x1], 1) * x_mask
593-
logdet = torch.sum(logabsdet * x_mask, [1, 2])
594-
if not reverse:
595-
return x, logdet
596-
else:
597-
return x

0 commit comments

Comments
 (0)