projects
/
pytorch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[pytorch.git]
/
mi_estimator.py
diff --git
a/mi_estimator.py
b/mi_estimator.py
index
68fd51f
..
47381ef
100755
(executable)
--- a/
mi_estimator.py
+++ b/
mi_estimator.py
@@
-226,7
+226,7
@@
def create_sequences_pairs(train = False):
class NetForImagePair(nn.Module):
def __init__(self):
class NetForImagePair(nn.Module):
def __init__(self):
- super(
NetForImagePair, self
).__init__()
+ super().__init__()
self.features_a = nn.Sequential(
nn.Conv2d(1, 16, kernel_size = 5),
nn.MaxPool2d(3), nn.ReLU(),
self.features_a = nn.Sequential(
nn.Conv2d(1, 16, kernel_size = 5),
nn.MaxPool2d(3), nn.ReLU(),
@@
-257,7
+257,7
@@
class NetForImagePair(nn.Module):
class NetForImageValuesPair(nn.Module):
def __init__(self):
class NetForImageValuesPair(nn.Module):
def __init__(self):
- super(
NetForImageValuesPair, self
).__init__()
+ super().__init__()
self.features_a = nn.Sequential(
nn.Conv2d(1, 16, kernel_size = 5),
nn.MaxPool2d(3), nn.ReLU(),
self.features_a = nn.Sequential(
nn.Conv2d(1, 16, kernel_size = 5),
nn.MaxPool2d(3), nn.ReLU(),
@@
-306,7
+306,7
@@
class NetForSequencePair(nn.Module):
)
def __init__(self):
)
def __init__(self):
- super(
NetForSequencePair, self
).__init__()
+ super().__init__()
self.nc = 32
self.nh = 256
self.nc = 32
self.nh = 256