Reverse-mode automatic differentiation for WebAssembly.
The typical workflow is to create an empty config via [Autodiff::new], use
[Autodiff::gradient] to specify one or more scalar-valued functions of which to take the
gradient, and then use [Autodiff::transform] to process a Wasm module.
For example, if you have wat and Wasmtime installed:
use ;
let input = parse_str.unwrap;
let mut ad = new;
ad.gradient;
let output = ad.transform.unwrap;
let engine = default;
let mut store = new;
let module = new.unwrap;
let instance = new.unwrap;
let double = instance..unwrap;
let result = double.call.unwrap;
assert_eq!;