Simplified calls to superclass constructors.
[pytorch.git] / miniflow.py
index b5c8cb4..eb2d4c7 100755 (executable)
@@ -44,7 +44,7 @@ def LogProba(x, ldj):
 # START_MODEL
 class PiecewiseLinear(nn.Module):
     def __init__(self, nb, xmin, xmax):
-        super(PiecewiseLinear, self).__init__()
+        super().__init__()
         self.xmin = xmin
         self.xmax = xmax
         self.nb = nb