Skip to content

[Documentation]: Document Tensor operations that move the Tensor off the symmetric heap #134

@mawad-amd

Description

@mawad-amd

Description of errors

There are PyTorch tensor ops that reallocate the Tensor and hence the Tensor becomes outside of the symmetric heap. We need to document these and possibly offer alternative APIs. For instance:

shmem = iris.iris()
tensor = shmem.zeros(4, 3)  # On symmetric heap
non_contiguous = tensor[::2]  # Non-contiguous slice
reshaped = non_contiguous.reshape(-1)  # Creates copy off heap!

Attach any links, screenshots, or additional evidence you think will be helpful.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationirisIris project issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions