MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/activations.py:41–44  ·  view source on GitHub ↗
(self, channels, kernel_size=3)

Source from the content-addressed store, hash-verified

39
40class FReLU(nn.Module):
41 def __init__(self, channels, kernel_size=3):
42 super().__init__()
43 self.conv = nn.Conv2d(channels, channels, kernel_size, padding=kernel_size // 2, groups=channels)
44 self.bn = nn.BatchNorm2d(channels)
45
46 def forward(self, x):
47 tx = self.bn(self.conv(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected