fix onnx flow

This commit is contained in:
Ftps
2023-12-10 16:27:58 +09:00
parent db6c80b618
commit df204f4f8b

View File

@@ -149,7 +149,7 @@ class ResidualCouplingBlock(nn.Module):
x, _ = flow(x, x_mask, g=g, reverse=reverse)
else:
for flow in reversed(self.flows):
x = flow(x, x_mask, g=g, reverse=reverse)
x, _ = flow(x, x_mask, g=g, reverse=reverse)
return x
def remove_weight_norm(self):