docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Multinomial

    Multinomial(TensorFloat, int, float?)

    Represents a Multinomial random layer. This generates an output tensor with values from a multinomial distribution according to the probabilities given by the input tensor.

    Declaration
    public TensorInt Multinomial(TensorFloat X, int count, float? seed)
    Parameters
    Type Name Description
    TensorFloat X

    The input tensor.

    int count

    The number of times to sample the input.

    float? seed

    The optional seed to use for the random number generation. If this is null the layer generates a seed using System.Random().

    Returns
    Type Description
    TensorInt

    The computed output tensor.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)