docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CompressWithIndices

    CompressWithIndices(Tensor, TensorInt, Tensor, int, int)

    Computes the output tensor by selecting slices from an input tensor according to the 'indices' tensor along an 'axis'.

    Declaration
    public override void CompressWithIndices(Tensor X, TensorInt indices, Tensor O, int numIndices, int axis)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    TensorInt indices

    The indices tensor.

    Tensor O

    The output tensor to be computed and filled.

    int numIndices

    The number of indices.

    int axis

    The axis along which to compress.

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