JuliaDiff / JuliaDiff/DifferentiationInterface.jl

macro for importing rule from chain rules for all backends that support it and are loaded

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

Nobody has claimed this yet.

backend
Dominant language
Julia
Stars
313
Forks
35
PR merge metrics
No merged PRs in 30d

Description

A few backends provide support for rules from chainrules:

DI could provide a macro that does the same for all loaded backend that support CR

Contributor guide

Open the contributing guide

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 comparing the listed backend entry points: ReverseDiff.@grad_from_chainrules, Enzyme.@import_rrule-Tuple, and Mooncake.@from_chainrules, along with ForwardDiffChainRules.jl and Zygote's automatic support. Trace how DifferentiationInterface discovers loaded backends and define what the macro should do for each supported backend, including behavior for unsupported ones. Done means one macro imports chainrules support across every loaded backend that provides it.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.