docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor TensorNDIterator

    TensorNDIterator(TensorNDIterator)

    Returns a copy of another TensorNDIterator.

    Declaration
    public TensorNDIterator(TensorNDIterator other)
    Parameters
    Type Name Description
    TensorNDIterator other

    The iterator to copy.

    TensorNDIterator(TensorShape)

    Initializes and returns an instance of TensorNDIterator with a given shape.

    Declaration
    public TensorNDIterator(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the iterator.

    TensorNDIterator(TensorShape, int)

    Initializes and returns an instance of TensorNDIterator with a given shape, and uses a given index in the flattened 1D version of the shape.

    Declaration
    public TensorNDIterator(TensorShape shape, int index)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the iterator.

    int index

    The index in the flattened shape.

    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)