diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 23:16:55 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 23:16:55 +0800 |
commit | 333bacd26376250d8606d737f01361853527f451 (patch) | |
tree | 7ae35d386b9a3a18caa361361f6a77226868e7f9 /models/auto_encoder.py | |
parent | 544cd7d3408191a9cabb5e0f2e6e83e2a2a7782e (diff) |
Bug fixesxla
1. Replace inplace Leaky ReLU in auto-encoder classifier with non-inplace one
2. Replace rank number with get_ordinal method in xmp
Diffstat (limited to 'models/auto_encoder.py')
-rw-r--r-- | models/auto_encoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/auto_encoder.py b/models/auto_encoder.py index 64c52e3..0c247f1 100644 --- a/models/auto_encoder.py +++ b/models/auto_encoder.py @@ -126,7 +126,7 @@ class AutoEncoder(nn.Module): f_c_dim = embedding_dims[1] self.classifier = nn.Sequential( - nn.LeakyReLU(0.2, inplace=True), + nn.LeakyReLU(0.2), BasicLinear(f_c_dim, num_class) ) |