JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl
Add helper in `test_rrule` and `test_frule` for testing structural zeros are in the right place
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Julia
- Stars
- 50
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
We should probably have some kinda of structural_zeros test
which for rrule checks that the structural zeros of the sensitivity are at least a superset of the input,
and for frule similar but for output
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 with the existing test_rrule and test_frule helpers and inspect how their sensitivity inputs and outputs are represented. Done means adding structural-zero checks where rrule verifies sensitivity zeros cover the input zeros and frule performs the analogous output check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100