JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

Helper for non-differentiable stuff

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

It would be helpful to have functionality which tests that @non_differentiable stuff is properly... non-differentiable.

It looks like rand_tangent doesn't work on it at the minute, and in any case we probably want to check that it's returning zeros etc.

Relevant issue: https://github.com/JuliaDiff/ChainRules.jl/pull/398

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 by reviewing the behavior described for @non_differentiable and rand_tangent, then read the relevant ChainRules.jl pull request linked in the issue. Define the helper's expected checks around zero tangents and non-differentiability; done means the utility can verify those cases reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.