docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Tril

    Tril(Tensor, Tensor, int)

    Computes the output tensor by retaining the lower triangular values from an input matrix or matrix batch and setting the other values to zero.

    Declaration
    public override void Tril(Tensor X, Tensor O, int k)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    Tensor O

    The output tensor to be computed and filled.

    int k

    The offset from the diagonal to keep.

    Overrides
    CPUBackend.Tril(Tensor, Tensor, int)
    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)