Function autograd::with[][src]

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

Creates a scope for a computation graph.

Prefer to use run instead, as that is more flexible. This function is kept for backwards compatibility.