docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Layer

    Represents the base class for all model layers.

    Inheritance
    object
    Layer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Sentis.Layers
    Assembly: Unity.Sentis.dll
    Syntax
    public abstract class Layer

    Constructors

    Layer(int[], int[])

    Initializes and returns a Layer from given arrays of input and output indices

    Declaration
    protected Layer(int[] outputs, int[] inputs)
    Parameters
    Type Name Description
    int[] outputs

    The indices array representing the outputs of this layer.

    int[] inputs

    The indices array representing the inputs of this layer.

    Fields

    inputs

    The indices to use for the input tensors for a layer.

    Declaration
    public int[] inputs
    Field Value
    Type Description
    int[]

    outputs

    The indices to use for all of the output tensors for a layer.

    Declaration
    public int[] outputs
    Field Value
    Type Description
    int[]

    Methods

    Execute(ExecutionContext)

    Executes the layer using the operations and variables from the ExecutionContext.

    Declaration
    public abstract void Execute(ExecutionContext ctx)
    Parameters
    Type Name Description
    ExecutionContext ctx

    The execution context with the backend and variables for the execution.

    ToString()

    Returns a string that represents the Layer.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string representation of the Layer.

    Overrides
    object.ToString()
    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)