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

Method forward

ML/src/python/neuralforge/nn/layers.py:111–115  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

109 self.dropout = nn.Dropout2d(drop_rate) if drop_rate > 0 else nn.Identity()
110
111 def forward(self, x):
112 out = self.conv1(self.relu1(self.bn1(x)))
113 out = self.conv2(self.relu2(self.bn2(out)))
114 out = self.dropout(out)
115 return torch.cat([x, out], 1)
116
117class DenseBlock(nn.Module):
118 def __init__(self, num_layers, in_channels, growth_rate, drop_rate=0.0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected