MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / make_layer

Function make_layer

networks/module_util.py:27–31  ·  view source on GitHub ↗
(block, n_layers)

Source from the content-addressed store, hash-verified

25
26
27def make_layer(block, n_layers):
28 layers = []
29 for _ in range(n_layers):
30 layers.append(block())
31 return nn.Sequential(*layers)
32
33
34class ResidualBlock_noBN(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected