diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-04-03 23:07:23 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-04-03 23:07:23 +0800 |
commit | 258efcafe4d34ed5ffeebcaab9389f75a17e4717 (patch) | |
tree | 0f4ffe75990b63b8e17956eeec269e3589852769 /models/layers.py | |
parent | 4049566103a00aa6d5a0b1f73569bdc5435714ca (diff) | |
parent | f6f133fa7b926ce0c7d28bbf0ba4de41b3708d4a (diff) |
Merge branch 'disentangling_only' into disentangling_only_py3.8
# 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 8228f49..1da79ef 100644 --- a/models/layers.py +++ b/models/layers.py @@ -79,7 +79,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): |