Reverse-mode automatic differentiation for WebAssembly.
The typical workflow is to create an empty config via [Autodiff::new], use
[Autodiff::export] to specify one or more functions to export the backward pass, 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.export;
let output = ad.transform.unwrap;
let engine = default;
let mut store = new;
let module = new.unwrap;
let instance = new.unwrap;
let square = instance..unwrap;
let backprop = instance..unwrap;
assert_eq!;
assert_eq!;