pub trait IntoValueAndGrad<'a, Err> {
// Required method
fn into_value_and_grad(
self,
argument_numbers: impl IntoOption<&'a [i32]>,
) -> impl FnMut(&[Array]) -> Result<(Vec<Array>, Vec<Array>)> + 'a;
}
Expand description
Trait for functions/closures that can be converted into a closure that computes the value and gradient.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.