docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomLayer

    Represents the base class for custom model layers.

    Inheritance
    Object
    Layer
    CustomLayer
    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
    Syntax
    [Serializable]
    public abstract class CustomLayer : Layer

    Methods

    InferOutputDataTypes(DataType[])

    Infer the data types of the output tensors of the custom layer given the data types of the input tensors.

    Declaration
    public abstract DataType[] InferOutputDataTypes(DataType[] inputDataTypes)
    Parameters
    Type Name Description
    DataType[] inputDataTypes

    Array of input data types.

    Returns
    Type Description
    DataType[]

    Array of output data types.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023