Skip to content

Commit

Permalink
fix passing value to ReLU
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikronic committed Jun 9, 2019
1 parent 195542c commit e26cb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EdgeNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, input_channel, output_channel):

super(CBR, self).__init__()
layers = [nn.Conv2d(input_channel, output_channel, kernel_size=5, stride=1, padding=2),
nn.BatchNorm2d(num_features=output_channel), nn.ReLU(0.2, inplace=True)]
nn.BatchNorm2d(num_features=output_channel), nn.ReLU(inplace=True)]
self.layers = nn.Sequential(*layers)

def forward(self, x):
Expand Down

0 comments on commit e26cb0b

Please sign in to comment.