• Creates a tf.Tensor with values sampled from a normal distribution.

    tf.randomNormal([2, 2]).print();
    

    Type Parameters

    • R extends Rank

    Parameters

    • shape: ShapeMap[R]

      An array of integers defining the output tensor shape.

    • Optional mean: number

      The mean of the normal distribution.

    • Optional stdDev: number

      The standard deviation of the normal distribution.

    • Optional dtype: "float32" | "int32"

      The data type of the output.

    • Optional seed: number

      The seed for the random number generator.

    Returns Tensor<R>

    Doc

Generated using TypeDoc