mx.symbol.normal
¶
Description¶
Draw random samples from a normal (Gaussian) distribution.
Note
The existing alias normal
is deprecated.
Samples are distributed according to a normal distribution parametrized by loc (mean) and scale (standard deviation).
Example:
normal(loc=0, scale=1, shape=(2,2)) = [[ 1.89171135, -1.16881478],
[-1.23474145, 1.55807114]]
Usage¶
mx.symbol.normal(...)
Arguments¶
Argument |
Description |
---|---|
|
float, optional, default=0. Mean of the distribution. |
|
float, optional, default=1. Standard deviation of the distribution. |
|
Shape(tuple), optional, default=None. Shape of the output. |
|
string, optional, default=’’. Context of output, in format [cpu|gpu|cpu_pinned](n). Only used for imperative calls. |
|
{‘None’, ‘float16’, ‘float32’, ‘float64’},optional, default=’None’. DType of the output in case this can’t be inferred. Defaults to float32 if not defined (dtype=None). |
|
string, optional. Name of the resulting symbol. |
Value¶
out
The result mx.symbol
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/random/sample_op.cc#L113