Skip to content

don't return reshaped array from mapreducedim! - #597

Merged
michel2323 merged 1 commit into
JuliaGPU:mainfrom
simeonschaub:sds/no_reshape
Jul 30, 2026
Merged

don't return reshaped array from mapreducedim!#597
michel2323 merged 1 commit into
JuliaGPU:mainfrom
simeonschaub:sds/no_reshape

Conversation

@simeonschaub

Copy link
Copy Markdown
Member

`mapreducedim!` reshapes the output container to match the number of
dimensions of the input, but then returned that reshaped array instead of
the one it was handed. Keep a reference to the original and return that.

Same as JuliaGPU/CUDA.jl#3219, discovered in
JuliaGPU/GPUArrays.jl#754.
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.12%. Comparing base (cefc118) to head (8d55485).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #597   +/-   ##
=======================================
  Coverage   79.11%   79.12%           
=======================================
  Files          50       50           
  Lines        3376     3377    +1     
=======================================
+ Hits         2671     2672    +1     
  Misses        705      705           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@simeonschaub

Copy link
Copy Markdown
Member Author

Runic CI failure seems to be expected for PR from forks?

@michel2323
michel2323 merged commit 26e7c9e into JuliaGPU:main Jul 30, 2026
3 of 4 checks passed
@simeonschaub
simeonschaub deleted the sds/no_reshape branch July 30, 2026 15:57
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