DifferentiationInterfaceTest

Build Status Coverage Code Style: Blue DOI

PackageDocs
DifferentiationInterfaceStable Dev
DifferentiationInterfaceTestStable Dev

Testing and benchmarking utilities for automatic differentiation (AD) in Julia, based on DifferentiationInterface.

Goal

Make it easy to know, for a given function:

  • which AD backends can differentiate it
  • how fast they can do it

Features

  • Predefined or custom test scenarios
  • Correctness tests
  • Type stability tests
  • Count calls to the function
  • Benchmark runtime and allocations
  • Weird array types (GPU, static, components)

Installation

To install the stable version of the package, run the following code in a Julia REPL:

julia> using Pkg

julia> Pkg.add("DifferentiationInterfaceTest")

To install the development version, run this instead:

julia> using Pkg

julia> Pkg.add(
        url="https://github.com/gdalle/DifferentiationInterface.jl",
        subdir="DifferentiationInterface"
    )
    
julia> Pkg.add(
        url="https://github.com/gdalle/DifferentiationInterface.jl",
        subdir="DifferentiationInterfaceTest"
    )