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