projects
/
pytorch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplified calls to superclass constructors.
[pytorch.git]
/
miniflow.py
diff --git
a/miniflow.py
b/miniflow.py
index
b5c8cb4
..
eb2d4c7
100755
(executable)
--- a/
miniflow.py
+++ b/
miniflow.py
@@
-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