modelzoo.common.pytorch.model_utils.weight_initializers.lecun_normal_#
- modelzoo.common.pytorch.model_utils.weight_initializers.lecun_normal_(tensor)[source]#
Adapted from TensorFlow’s initializations https://www.tensorflow.org/api_docs/python/tf/keras/initializers/LecunNormal
- Parameters
tensor (torch.Tensor) – an n-dimensional torch.Tensor
Examples
>>> w = torch.empty(3, 3) >>> lecun_normal_(w)