summaryrefslogtreecommitdiff
path: root/models/layers.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:28:35 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-01 18:28:35 +0800
commitd01458560bc03c59852f6e3b45c6408a90ba9b6f (patch)
treec7187695c8fd16faf047cd93b66ed5ce9b7b0033 /models/layers.py
parent8745ffeb51b29cfe7d3eee2d845910086ba8b046 (diff)
parentd88e40217f56d96e568335ccee1f14ff3ea5a696 (diff)
Merge branch 'data_parallel' into data_parallel_py3.8
# Conflicts: # models/model.py # 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):