Skip to content

Commit

Permalink
go back to initial init
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbesbes committed Oct 21, 2019
1 parent c161c67 commit c4706be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ def __init__(self, args, number_of_classes):

# initialize weights

# self._create_weights()
self._create_weights()

# utility private functions

def _create_weights(self, mean=0.0, std=0.05):
for module in self.modules():
if isinstance(module, nn.Conv1d) or isinstance(module, nn.Linear):
module.weight.data.normal_(mean, std)


def _get_conv_output(self, shape):
x = torch.rand(shape)
Expand Down

0 comments on commit c4706be

Please sign in to comment.