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

Set factories default to copy=Nonein line with Python array-API #1117

Closed
ClaudiaComito opened this issue Mar 6, 2023 · 0 comments · Fixed by #1119
Closed

Set factories default to copy=Nonein line with Python array-API #1117

ClaudiaComito opened this issue Mar 6, 2023 · 0 comments · Fixed by #1119

Comments

@ClaudiaComito
Copy link
Contributor

ClaudiaComito commented Mar 6, 2023

heat.array(obj) by default makes a copy of the underlying object, in sync with np.array. Our users deal with massive arrays by definition, so we should consider deviating from NumPy here.

Related
#991

Feature functionality
I propose to switch to the Python array-API asarray default copy=None and only create a copy when strictly necessary.

Let's revise and release this quickly @Markus-Goetz

@ClaudiaComito ClaudiaComito changed the title Set factories default to copy=False Set factories default to copy=Nonein line with Python array-API Mar 6, 2023
@ClaudiaComito ClaudiaComito added this to the v1.2.3 milestone Mar 6, 2023
@ClaudiaComito ClaudiaComito self-assigned this Mar 6, 2023
@ClaudiaComito ClaudiaComito modified the milestones: v1.2.3, 1.3.0 Apr 17, 2023
ClaudiaComito added a commit that referenced this issue Jun 19, 2023
mrfh92 added a commit that referenced this issue Jun 19, 2023
…y-copy-None

`ht.array()` default to `copy=None` (e.g., only if necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant