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
    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[]

    Properties

    opName

    Returns a string that represents the operation of the Layer.

    Declaration
    public abstract string opName { get; }
    Property Value
    Type Description
    string

    profilerMarker

    ProfilerMarker for this layer

    Declaration
    public abstract ProfilerMarker profilerMarker { get; }
    Property Value
    Type Description
    ProfilerMarker

    Methods

    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 © 2025 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)