MCPcopy Create free account
hub / github.com/computational-imaging/bacon / init_weights_normal

Function init_weights_normal

modules.py:13–16  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

11
12
13def init_weights_normal(m):
14 if type(m) == nn.Linear:
15 if hasattr(m, 'weight'):
16 nn.init.kaiming_normal_(m.weight, a=0.0, nonlinearity='relu', mode='fan_out')
17
18
19def init_weights_selu(m):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected