docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor TextureTensorData

    TextureTensorData(DataType, TensorShape, int, bool)

    Initializes and returns an instance of TextureTensorData with given shape and blocked axis. A RenderTexture is allocated to the correct size.

    Declaration
    public TextureTensorData(DataType dataType, TensorShape shape, int axis, bool clearOnInit = false)
    Parameters
    Type Name Description
    DataType dataType

    The data type of the tensor.

    TensorShape shape

    The (unblocked) shape of the tensor.

    int axis

    The axis on which to block the shape.

    bool clearOnInit

    Whether to zero the data on allocation. The default value is false.

    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)