docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Bernoulli

    Bernoulli(string, string, DataType, float?)

    Initializes and returns an instance of Bernoulli random layer.

    Declaration
    public Bernoulli(string name, string input, DataType dataType, float? seed)
    Parameters
    Type Name Description
    string name

    The name to use for the output tensor of the layer.

    string input

    The name to use for the probabilities tensor of the layer.

    DataType dataType

    The data type of the output as a DataType.

    float? seed

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

    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)