summaryrefslogtreecommitdiff
path: root/models/layers.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:12:25 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-28 23:12:25 +0800
commite04f54d0bfc8fc711e53561065d772dae1926b64 (patch)
tree0996a345a272795b9f77de397fb6aaca6e159088 /models/layers.py
parentec863bad4933f25a5bf14fef2541df43c4d9430f (diff)
parentfed5e6a9b35fda8306147e9ce772dfbf3142a061 (diff)
Merge branch 'master' into python3.8
# Conflicts: # utils/configuration.py # utils/triplet_loss.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):