Skip to content

Commit

Permalink
adding dropout to input
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbesbes committed Oct 21, 2019
1 parent c4706be commit 79706a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _get_conv_output(self, shape):
# forward

def forward(self, x):
x = nn.Dropout2d(0.1)(x)
x = x.transpose(1, 2)
x = self.conv1(x)
x = self.conv2(x)
Expand All @@ -102,3 +103,4 @@ def forward(self, x):
x = self.fc2(x)
x = self.fc3(x)
return x

0 comments on commit 79706a2

Please sign in to comment.