Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Residence proposal #70

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

abrown
Copy link
Collaborator

@abrown abrown commented Apr 29, 2024

This merges together some of #69 with various discussions we've had in the ML working group.


// Move the tensor to a different device. This operation may result in an expensive data
// copy.
move-to: func(device: device) -> result<tensor, error>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtr's suggestion: rename to copy-to since that more accurately reflects the semantics here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mingqiusun suggests to.

@abrown
Copy link
Collaborator Author

abrown commented Aug 22, 2024

This change is probably not desirable if we adopt #74: if a user can't change where a model resides any more, they shouldn't be allowed to change where a tensor resides.

@geekbeast
Copy link
Contributor

Is this also implying that tensors in pipelines that cross hardware boundaries will automatically be moved around at compute time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants