summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-03 20:48:13 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-03 20:48:13 +0800
commit65c1f1a5a88344b67df42ca4f646763a5b80a691 (patch)
tree4c6bb2dc4e4b0bef26f7899319327aaf0c6587da /models/model.py
parent89d677873eb1c99070bd9a33a36f4c6415396756 (diff)
Separate last fc matrix from weight init function
Recursive apply will override other parameters too
Diffstat (limited to 'models/model.py')
-rw-r--r--models/model.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py
index ebd6aba..7dba949 100644
--- a/models/model.py
+++ b/models/model.py
@@ -87,8 +87,6 @@ class Model:
nn.init.zeros_(m.bias)
elif isinstance(m, nn.Linear):
nn.init.xavier_uniform_(m.weight)
- elif isinstance(m, nn.Parameter):
- nn.init.xavier_uniform_(m)
def _parse_dataset_config(
self,