docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Range

    Range(float, float, float)

    Generates a 1D output tensor where the values form an arithmetic progression defined by the start, limit, and delta values.

    Declaration
    public TensorFloat Range(float start, float limit, float delta)
    Parameters
    Type Name Description
    float start

    The first value in the range.

    float limit

    The limit of the range.

    float delta

    The delta between subsequent values in the range.

    Returns
    Type Description
    TensorFloat

    The computed output tensor.

    Range(int, int, int)

    Generates a 1D output tensor where the values form an arithmetic progression defined by the start, limit, and delta values.

    Declaration
    public TensorInt Range(int start, int limit, int delta)
    Parameters
    Type Name Description
    int start

    The first value in the range.

    int limit

    The limit of the range.

    int delta

    The delta between subsequent values in the range.

    Returns
    Type Description
    TensorInt

    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)