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
    [Serializable]
    public abstract class Layer

    Fields

    flags

    The flags set on the layer.

    Declaration
    [NonSerialized]
    public Flags flags
    Field Value
    Type Description
    Flags

    index

    The name to use for the first output tensor for a layer.

    Declaration
    public string index
    Field Value
    Type Description
    string

    inputs

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

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

    outputs

    The names to use for all of the output tensors for a layer. This is null if a layer has only one output.

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

    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)