JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

Add helper in `test_rrule` and `test_frule` for testing structural zeros are in the right place

Open
#9 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.