docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MatMul2D

    MatMul2D(TensorFloat, TensorFloat, bool, bool)

    Performs a matrix multiplication operation with optional transposes: f(a, b) = a' x b'.

    Declaration
    public TensorFloat MatMul2D(TensorFloat X, TensorFloat Y, bool xTranspose, bool yTranspose)
    Parameters
    Type Name Description
    TensorFloat X

    The first input tensor.

    TensorFloat Y

    The second input tensor.

    bool xTranspose

    Whether to transpose the first input tensor before performing the matrix multiplication.

    bool yTranspose

    Whether to transpose the second input tensor before performing the matrix multiplication.

    Returns
    Type Description
    TensorFloat

    The computed output tensor.

    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)