docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Layer

    Represents the base class for all model layers.

    Inheritance
    object
    Layer
    Activation
    ArgReduce
    BatchNormalization
    Broadcast
    Cast
    CastLike
    Clip
    Compress
    Concat
    ConstantOfShape
    CumSum
    CustomLayer
    DepthToSpace
    Einsum
    Expand
    Flatten
    FusedActivation
    Gather
    GatherElements
    GatherND
    GlobalPool
    Identity
    InstanceNormalization
    IsInf
    IsNaN
    LRN
    LSTM
    LayerNormalization
    LocalPool
    MatMul
    MatMul2D
    NonMaxSuppression
    NonZero
    Not
    OneHot
    Pad
    RandomLayer
    Range
    Reduce
    Reshape
    Resize
    RoiAlign
    ScaleBias
    ScatterElements
    ScatterND
    Shape
    Shrink
    Sign
    SingleHeadAttention
    Size
    Slice
    SpaceToDepth
    Split
    Squeeze
    Tile
    TopK
    Transpose
    Trilu
    Unsqueeze
    Inherited Members
    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 Layer

    Fields

    Name Description
    flags

    The flags set on the layer.

    inputs

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

    name

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

    outputs

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

    Methods

    Name Description
    Execute(Tensor[], ExecutionContext)

    Executes the layer using the operations and variables from the ExecutionContext and returns the output tensor.

    If the layer has more than one output, output tensors are saved to variables.

    ToString()

    Returns a string that represents the Layer.

    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)