Skip to content

Commit

Permalink
initialize weights
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Oct 10, 2024
1 parent 2381d61 commit 0bb2e53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lasdi/latent_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, layer_sizes,
for k in range(self.n_layers-1):
self.fcs += [torch.nn.Linear(layer_sizes[k], layer_sizes[k + 1])]
self.fcs = torch.nn.ModuleList(self.fcs)
self.init_weight()

# Reshape input or output layer
assert((reshape_index is None) or (reshape_index in [0, -1]))
Expand Down

0 comments on commit 0bb2e53

Please sign in to comment.