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

Method __init__

ML/src/python/neuralforge/nn/layers.py:118–123  ·  view source on GitHub ↗
(self, num_layers, in_channels, growth_rate, drop_rate=0.0)

Source from the content-addressed store, hash-verified

116
117class DenseBlock(nn.Module):
118 def __init__(self, num_layers, in_channels, growth_rate, drop_rate=0.0):
119 super().__init__()
120 layers = []
121 for i in range(num_layers):
122 layers.append(DenseLayer(in_channels + i * growth_rate, growth_rate, drop_rate))
123 self.layers = nn.Sequential(*layers)
124
125 def forward(self, x):
126 return self.layers(x)

Callers

nothing calls this directly

Calls 3

DenseLayerClass · 0.85
__init__Method · 0.45
appendMethod · 0.45

Tested by

no test coverage detected