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]
/
tinyae.py
diff --git
a/tinyae.py
b/tinyae.py
index
1608786
..
b4f3aba
100755
(executable)
--- a/
tinyae.py
+++ b/
tinyae.py
@@
-55,7
+55,7
@@
def log_string(s):
class AutoEncoder(nn.Module):
def __init__(self, nb_channels, embedding_dim):
class AutoEncoder(nn.Module):
def __init__(self, nb_channels, embedding_dim):
- super(
AutoEncoder, self
).__init__()
+ super().__init__()
self.encoder = nn.Sequential(
nn.Conv2d(1, nb_channels, kernel_size=5), # to 24x24
self.encoder = nn.Sequential(
nn.Conv2d(1, nb_channels, kernel_size=5), # to 24x24