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

    tf.randomGamma([2, 2], 1).print();
    

    Type Parameters

    • R extends Rank

    Parameters

    • shape: ShapeMap[R]

      An array of integers defining the output tensor shape.

    • alpha: number

      The shape parameter of the gamma distribution.

    • Optional beta: number

      The inverse scale parameter of the gamma distribution. Defaults to 1.

    • Optional dtype: "float32" | "int32"

      The data type of the output. Defaults to float32.

    • Optional seed: number

      The seed for the random number generator.

    Returns Tensor<R>

    Doc

Generated using TypeDoc