pub fn partial_eval(
f: &Function,
known_in: &[bool],
instantiate: &[bool],
) -> Result<PartialEval>Expand description
Splits f into the computation of what depends only on the inputs
marked known, and the rest, as JAX’s partial evaluation does. Outputs
marked instantiate are made unknown (passed through as residuals if
they are known). Equations whose inputs are all known are known.
§Errors
Returns an error if the masks do not match f.