docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ShallowReshape

    ShallowReshape(Tensor, TensorShape, AllocScope)

    Create a shallow reshape of a tensor with the same tensor data.

    Declaration
    public virtual Tensor ShallowReshape(Tensor X, TensorShape shape, AllocScope allocScope)
    Parameters
    Type Name Description
    Tensor X

    The tensor to copy.

    TensorShape shape

    The shape of the allocated tensor.

    AllocScope allocScope

    Whether the allocated tensor is internal to the layer or used as an output.

    Returns
    Type Description
    Tensor

    The allocated tensor.

    Implements
    IBackend.ShallowReshape(Tensor, TensorShape, AllocScope)
    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)