summaryrefslogtreecommitdiff
path: root/models/layers.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:12:58 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:12:58 +0800
commit0d2b643d7e04eba872e8b1fc9b04478a026bb3b0 (patch)
treea53d8aa69e050397d3443a602a42ed700a8e8bb5 /models/layers.py
parent10b1299eb46343e119bc413ba8774dcb1a68595e (diff)
parente04f54d0bfc8fc711e53561065d772dae1926b64 (diff)
Merge branch 'python3.8' into python3.7
# Conflicts: # utils/configuration.py
Diffstat (limited to 'models/layers.py')
-rw-r--r--models/layers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/layers.py b/models/layers.py
index ae61583..e30d0c4 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):