normal

dragon.vm.torch.normal(
  *size,
  **kwargs
)[source]

Return a tensor with a normal distribution.

Parameters:
  • size (int...) – The size(s) indicating the out shape.
  • mean (number, optional, default=0) – The mean of distribution.
  • std (number, optional, default=1) – The stddev of distribution.
  • out (dragon.vm.torch.Tensor, optional) – The optional output tensor.
  • dtype (str, optional, default='float32') – The optional data type.
  • device (dragon.vm.torch.device, optional) – The optional device of returned tensor.
  • requires_grad (bool, optional, default=False) – True to record gradient for returned tensor.
Returns:

dragon.vm.torch.Tensor – The output tensor.