Skip to content

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

Merged
simeonschaub merged 2 commits into
JuliaGPU:mainfrom
simeonschaub:sds/no_reshape
Jul 29, 2026
Merged

don't return reshaped array from mapreducedim!#468
simeonschaub merged 2 commits 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 81.17%. Comparing base (cf2ec40) to head (0bf6bb1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #468      +/-   ##
==========================================
+ Coverage   81.15%   81.17%   +0.02%     
==========================================
  Files          13       13              
  Lines         934      935       +1     
==========================================
+ Hits          758      759       +1     
  Misses        176      176              

☔ 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
simeonschaub enabled auto-merge (squash) July 29, 2026 10:45
@simeonschaub
simeonschaub merged commit 024304e into JuliaGPU:main Jul 29, 2026
13 of 14 checks passed
@simeonschaub
simeonschaub deleted the sds/no_reshape branch July 29, 2026 13:16
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.

1 participant