docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RandomLayer

    Represents the abstract base class for layers which generate random values in the output tensor.

    Inheritance
    object
    Layer
    RandomLayer
    Bernoulli
    Multinomial
    RandomNormal
    RandomNormalLike
    RandomUniform
    RandomUniformLike
    Inherited Members
    Layer.inputs
    Layer.name
    Layer.outputs
    Layer.flags
    Layer.Execute(Tensor[], ExecutionContext)
    Layer.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis.Layers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class RandomLayer : Layer

    Constructors

    Name Description
    RandomLayer(float?)

    Initializes and returns an instance of RandomLayer.

    Fields

    Name Description
    hasSeed

    Whether the layer has a provided seed value for the random number generator.

    seed

    The seed value for the random number generator. The layer does not use this value if hasSeed is false.

    Properties

    Name Description
    NextSeed

    Gets the next seed value for execution.

    Methods

    Name Description
    ResetSeed()

    Resets the state of the random number generator to its initial state.

    If hasSeed is false then the random number generator is seeded by 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)