Welcome to our Support Center

RandomNormal

Description

Generate a tensor with random values drawn from a normal distribution. The shape of the tensor is specified by the shape argument and the parameter of the normal distribution specified by mean and scale. The data type is specified by the ‘dtype’ argument. The ‘dtype’ argument must be one of the data types specified in the ‘DataType’ enum field in the TensorProto message.

 

Input parameters

 

 specified_outputs_name : array, this parameter lets you manually assign custom names to the output tensors of a node.

 Parameters : cluster,

dtype : enum, the data type for the elements of the output tensor.
Default value “FLOAT”.
mean : float, the mean of the normal distribution.
Default value “0”.
scale : float, the standard deviation of the normal distribution.
Default value “0”.
seed : float, seed to the random generator, if not specified we will auto generate one.
Default value “0”.
shape : array, the shape of the output tensor.
Default value “empty”.
 training? : boolean, whether the layer is in training mode (can store data for backward).
Default value “True”.
 lda coeff : float, defines the coefficient by which the loss derivative will be multiplied before being sent to the previous layer (since during the backward run we go backwards).
Default value “1”.

 name (optional) : string, name of the node.

Output parameters

 

output (heterogeneous) – T : object, output tensor of random values drawn from normal distribution.

Type Constraints

T in (tensor(double)tensor(float)tensor(float16)) : Constrain output types to float tensors.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).
Table of Contents