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
Use da.eye with chunks="auto" fails #4635
Comments
It looks like the if not isinstance(chunks, (int, str)):
raise ...
elif isinstance(chunks, str):
chunks = normalize_chunks(chunks, ...)
chunks = chunks[0][0] # grab out an integer again ? |
Would it be useful to add In [9]: with dask.config.set({'array.chunk-size': '50 MiB'}):
...: x = da.eye(500000, 'auto')
...: print(x)
...:
dask.array<eye, shape=(500000, 500000), dtype=float64, chunksize=(2500, 2500)> |
Good question. IIRC I was talking with @lightsighter, which prompted this issue. Maybe he can advise us on desirable behavior. |
I would like da.eye to support arbitrary chunking sizes because I was using a brute-force autotuning script to select the chunks sizes. It really starts to get hard to do autotuning when you can't choose arbitrarily reasonable values. |
So The remaining task is to support anisotropic chunks for |
While I agree that anisotropic chunks are in scope, does anyone actively
want this? I'm not sure I've ever seen any actual uses of `da.eye` in
practice. I'm somewhat in favor of closing until more people ask for this
functionality.
…On Tue, May 28, 2019 at 10:07 AM jakirkham ***@***.***> wrote:
So chunks='auto' is now supported in da.eye thanks to PR ( #4834
<#4834> ).
The remaining task is to support anisotropic chunks for da.eye as well.
For example we'd like to support the following, da.eye(12, chunks=(4, 3))
(stolen from Tom's example
<#4834 (comment)> ;).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4635?email_source=notifications&email_token=AACKZTD3DB2IIQDLEBNKDVTPXVDD7A5CNFSM4HBSH24KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWMN6RI#issuecomment-496557893>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACKZTD26TCOO3WZP47XXKTPXVDD7ANCNFSM4HBSH24A>
.
|
Personally I don't see a problem with keeping this issue open (especially if we think it is in scope). Though I agree this seems like lower priority relative to other issues. |
Currently if a user tries to create an array with
da.eye(..., chunks="auto")
, it fails. An MRE is included below.Example:
Environment:
The text was updated successfully, but these errors were encountered: