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

Add device keyword to creation functions #60

Merged
merged 2 commits into from
May 28, 2024
Merged

Add device keyword to creation functions #60

merged 2 commits into from
May 28, 2024

Conversation

mtsokol
Copy link
Member

@mtsokol mtsokol commented May 27, 2024

Hi @hameerabbasi,

This PR adds device keyword to creation functions to conform with Array API (Only accepts "cpu" now).

@mtsokol mtsokol added the enhancement New feature or request label May 27, 2024
@mtsokol mtsokol requested a review from hameerabbasi May 27, 2024 12:11
@mtsokol mtsokol self-assigned this May 27, 2024
Copy link
Collaborator

@hameerabbasi hameerabbasi left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM besides the one comment.

src/finch/tensor.py Outdated Show resolved Hide resolved
@mtsokol mtsokol requested a review from hameerabbasi May 27, 2024 14:03
@mtsokol mtsokol merged commit b08717e into main May 28, 2024
5 checks passed
@mtsokol mtsokol deleted the device-keyword branch May 28, 2024 09:03
@willow-ahrens
Copy link
Collaborator

Finch does have a notion of device, though it's not quite ready for production. You can view it in https://github.com/willow-ahrens/Finch.jl/blob/main/src/architecture.jl

@willow-ahrens
Copy link
Collaborator

Maybe once that's up and running we can port it to python somehow, but I think we'll need to discuss some more.

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

Successfully merging this pull request may close these issues.

3 participants