diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-01 18:23:33 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-01 18:26:47 +0800 |
commit | d88e40217f56d96e568335ccee1f14ff3ea5a696 (patch) | |
tree | f24b204794fbb8fc501d2124ae67a73faf82db1f /models/layers.py | |
parent | 5f75d7ef65f6dcd0e72df320c58b6bd141937b5f (diff) | |
parent | 6002b2d2017912f90e8917e6e8b71b78ce58e7c2 (diff) |
Merge branch 'master' into data_parallel
# Conflicts:
# models/model.py
Diffstat (limited to 'models/layers.py')
-rw-r--r-- | models/layers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/layers.py b/models/layers.py index ef53a95..f1d72b6 100644 --- a/models/layers.py +++ b/models/layers.py @@ -80,7 +80,9 @@ class DCGANConvTranspose2d(BasicConvTranspose2d): if self.is_last_layer: return self.trans_conv(x) else: - return super().forward(x) + x = self.trans_conv(x) + x = self.bn(x) + return F.leaky_relu(x, 0.2, inplace=True) class BasicLinear(nn.Module): |