Demos
Guides
Advanced guides
Notes
Package reference
init_weights()
Resources
Meta information
Initialize network weights.
net (torch.nn.Module) – network to initialize
init_type (str) – the name of an initialization method: normal | xavier | kaiming | orthogonal | none.
init_gain (float) – scaling factor for normal, xavier and orthogonal.