MCPcopy Index your code
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/layers.py:34–38  ·  view source on GitHub ↗
(self, channels, kernel_size=3, drop_rate=0.0)

Source from the content-addressed store, hash-verified

32
33class ResidualBlock(nn.Module):
34 def __init__(self, channels, kernel_size=3, drop_rate=0.0):
35 super().__init__()
36 self.conv1 = ConvBlock(channels, channels, kernel_size, padding=kernel_size // 2, drop_rate=drop_rate)
37 self.conv2 = ConvBlock(channels, channels, kernel_size, padding=kernel_size // 2, activation='none')
38 self.activation = nn.ReLU(inplace=True)
39
40 def forward(self, x):
41 residual = x

Callers

nothing calls this directly

Calls 2

ConvBlockClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected