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

Rules for eachslice with multiple dims #722

Open
gaspardbb opened this issue Jun 2, 2023 · 2 comments
Open

Rules for eachslice with multiple dims #722

gaspardbb opened this issue Jun 2, 2023 · 2 comments
Labels
bug Something isn't working missing rule

Comments

@gaspardbb
Copy link

With Julia 1.9 eachslice enables to properly drop dimension when taking a reduction function over some dimension (at least based on JuliaLang/julia#16606). However, having implemented this, it seems multiple dimensions is not handled yet. I stumbled upon @mcabbott advice, "the gradient rule for eachslice is unable to handle case right now, please make an issue" to fill an issue, so here it is. If I'm correct, this has not been opened yet.

@oxinabox oxinabox added missing rule bug Something isn't working labels Jun 2, 2023
@BioTurboNick
Copy link
Contributor

I just encountered this issue. Is there a way to work around this?

@mcabbott
Copy link
Member

Ideally someone extends the rule. But until then, can you reshape before & after to fit the single dims case? Or, less efficiently, make a comprehension which just calls view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working missing rule
Projects
None yet
Development

No branches or pull requests

4 participants