JuliaDiff / JuliaDiff/ChainRulesCore.jl
ProjectTo(::Vector{Vector{Float64}}) type unstable
Open
Nobody has claimed this yet.
ProjectTo
- Dominant language
- Julia
- Stars
- 267
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
MWE:
using ChainRulesCore: ProjectTo
x = [randn(2), randn(3)]
@code_warntype ProjectTo(x)
It appears to be the case that this happens because
@code_warntype map(ProjectTo, x)
isn't type-stable.
I'm not sure what a fix looks like here unfortunately.
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 running the MWE with @code_warntype ProjectTo(x) and compare it with @code_warntype map(ProjectTo, x). Trace the ProjectTo dispatch involved for Vector{Vector{Float64}}; done means the reported operation is type-stable, with the relevant behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100