mcabbott / mcabbott/SliceMap.jl
mapcols return CPU arrays with GPU input
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 31
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
julia> using SliceMap, Flux
julia> mapcols(norm, gpu(Flux.param(randn(2,2))))
Tracked 1×2 Array{Float32,2}:
1.98362 0.443408
julia> mapcols(norm, gpu(randn(2,2)))
1×2 Array{Float32,2}:
0.891582 3.15292
Possibly because norm returns a scalar?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two mapcols examples from the issue in a Julia environment with SliceMap and Flux, then locate the mapcols implementation. Check how scalar column results are allocated when the input is a GPU array. Done means mapcols preserves the expected GPU-backed result type for GPU input without breaking the shown cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100