JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl
Make replace boolean `check_inferred` with something that allows configuable small unions
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 50
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
occured to me during https://github.com/JuliaDiff/ChainRules.jl/pull/717
that there are like 3 states we really care about:
- Doesn't infer at all, so infers to
Anyor someUnionAllor abstract type - Infers down to a small union of <4 types, so the small union optimization kicks in
- Infers down to a single concrete type
The current check_inferred boolean doesn't allow us to distinguish case 1 from case 2.
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 reviewing the current check_inferred implementation and the context in ChainRules.jl pull request 717. Define how configuration distinguishes no inference, inference to a small union of fewer than four types, and inference to one concrete type; done means callers can reliably tell these three cases apart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100