fn
normal_op
→TensorImplPtrint normal_op(const int & shape, double mean, double std, Dtype dt, Device device, Generator * gen)Python wrappers
Public Python APIs implemented by this engine symbols.Allocates a tensor filled with Gaussian samples .
Math
See Also
randn_op — shortcut for .
Parameters
shapeconst Shape&Shape of the output tensor.
meandoubleLocation parameter .
stddoubleScale parameter . Must be non-negative; a value of
0 produces a constant tensor equal to mean.dtDtypeElement dtype. Floating-point only.
deviceDeviceMemory domain.
Bit-stream state.
Returns
TensorImplPtrNewly allocated leaf tensor (requires_grad = false).
Raises
LucidErrorIf
std < 0.