[][src]Function autograd::with

pub fn with<F, FN>(f: FN) where
    F: Float,
    FN: FnOnce(&mut Graph<F>) + Send

Creates a scope for a computation graph.

This is the only way to create Graph instances.