Module — PyTorch 1.10.1 documentation
pytorch.org › docs › stableThe child module can be accessed from this module using the given name. module – child module to be added to the module. apply (fn) [source] ¶ Applies fn recursively to every submodule (as returned by .children()) as well as self. Typical use includes initializing the parameters of a model (see also torch.nn.init). Parameters