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

    The generated values will have mean 0 and standard deviation 1.

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

    Type Parameters

    • R extends Rank

    Parameters

    • shape: ShapeMap[R]

      An array of integers defining the output tensor shape.

    • 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