docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Transpose

    Represents a Transpose layer. The layer computes the output tensor by permuting the axes and data of the input tensor according to the given permutations.

    Inheritance
    object
    Layer
    Transpose
    Inherited Members
    Layer.inputs
    Layer.name
    Layer.outputs
    Layer.flags
    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 class Transpose : Layer

    Constructors

    Name Description
    Transpose(string, string, int[])

    Initializes and returns an instance of Transpose layer with permutations as an array of integers.

    Fields

    Name Description
    permutations

    The axes to sample the output tensor from in the input tensor.

    If this is null, the layer reverses the dimensions of the input tensor in the output tensor.

    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)