JuliaDiff / JuliaDiff/ChainRulesCore.jl
using ChainRulesCore changes type promotion logic
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 267
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Julia 1.9 and ChainRulesCore v1.19.0
When I use the following code, the results change
a = ones(Complex,100,100)
a'
ela = eltype(a') # Complex
using ChainRulesCore
a = ones(Complex,100,100)
a'
ela1 = eltype(a') # Any
ela is Complex but ela1 is Any
Please tell me how to avoid this problem (constructing the Complex type is inevitable),Please tell me how to avoid this problem (constructing the Complex type is inevitable), or is this a bug?
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 Julia 1.9 example with and without ChainRulesCore v1.19.0, comparing the eltype of the adjoint in both cases. Investigate the ChainRulesCore interaction with type promotion; done means identifying the cause and documenting a verified workaround or confirming the bug with a focused regression case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100