JuliaDiff / JuliaDiff/ChainRulesCore.jl
`ProjectTo(::AbstractSparseMatrix{Bool})` should be trivial
Open
Nobody has claimed this yet.
bug
help wanted
ProjectTo
- Dominant language
- Julia
- Stars
- 267
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
From https://github.com/FluxML/Zygote.jl/issues/1428, these two should make the same ProjectTo{NoTangent}():
julia> using ChainRulesCore, SparseArrays
julia> ProjectTo(diagm([true, false]))
ProjectTo{NoTangent}()
julia> ProjectTo(spdiagm([true, false]))
ProjectTo{SparseMatrixCSC}(element = ProjectTo{NoTangent}(), axes = (Base.OneTo(2), Base.OneTo(2)), rowval = [1, 2], nzranges = UnitRange{Int64}[1:1, 2:2], colptr = [1, 2, 3])
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 locating the ProjectTo methods handling AbstractSparseMatrix and Boolean-valued sparse matrices in ChainRulesCore.jl. Reproduce the diagm and spdiagm examples from the issue, then add or update a regression test so both cases produce ProjectTo{NoTangent}().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100