Skip to main content

vjp

Function vjp 

Source
pub fn vjp(f: &Function, wrt: &[bool]) -> Result<Vjp>
Expand description

Linearizes f and transposes it: reverse-mode differentiation with respect to the inputs marked wrt (which must be floats).

ยงErrors

Returns an error if a primitive has no JVP or transpose rule, or if a wrt input is not a float.