Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>5.0
self.conv = nn.Conv2d(c1, c1, k, 1, 1, groups=c1) | self.conv = nn.Conv2d(c1, c1, k, 1, 1, groups=c1) | ||||
self.bn = nn.BatchNorm2d(c1) | self.bn = nn.BatchNorm2d(c1) | ||||
@staticmethod | |||||
def forward(self, x): | def forward(self, x): | ||||
return torch.max(x, self.bn(self.conv(x))) | return torch.max(x, self.bn(self.conv(x))) |