MCPcopy Create free account
hub / github.com/DIVE128/DMVSNet / init_uniform

Function init_uniform

networks/module.py:19–25  ·  view source on GitHub ↗
(module, init_method)

Source from the content-addressed store, hash-verified

17
18
19def init_uniform(module, init_method):
20 if module.weight is not None:
21 if init_method == "kaiming":
22 nn.init.kaiming_uniform_(module.weight)
23 elif init_method == "xavier":
24 nn.init.xavier_uniform_(module.weight)
25 return
26
27
28class Conv2d(nn.Module):

Callers 4

init_weightsMethod · 0.85
init_weightsMethod · 0.85
init_weightsMethod · 0.85
init_weightsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected