Skip to content

Reallocate/Reshape in Ctor #94

@ryanmrichard

Description

@ryanmrichard

For any of TensorWrapper's ctors which take a Buffer, the ctor should make sure that non-empty Buffers are consistent with the shape and allocators provided. This means the Buffer should be reshaped and/or reallocated as needed. If the Buffer is empty, then we assume that shape and allocator are being used as hints for how to eventually fill the Buffer (and nothing needs to be done until the buffer is filled).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions