The ChainRules package provides a variety of common utilities that can be used by downstream automatic differentiation (AD) tools to define and execute forward-, reverse--, and mixed-mode primitives. The core logic of ChainRules is implemented in ChainRulesCore.jl. To add ChainRules support to your package, by defining new rules or frules, you only need to depend on the very light-weight package ChainRulesCore.jl. This repository contains ChainRules.jl, which is what people actually use directly. ChainRules reexports all the ChainRulesCore functionality and has all the rules for the Julia standard library.

Features

  • Mixed-mode composability without being coupled to a specific AD implementation
  • Extensible rules
  • Control-inverted design
  • Propagation semantics built-in
  • Package authors can add rules (and thus AD support) to the functions in their packages, without needing to make a PR to ChainRules.jl
  • Default implementations that allow rule authors to easily opt-in to common optimizations (fusion, increment elision, memoization, etc.)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow ChainRules.jl

ChainRules.jl Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ChainRules.jl!

Additional Project Details

Programming Language

Julia

Related Categories

Julia Data Visualization Software

Registered

2023-11-09