Skip to main content

OpCall

Trait OpCall 

Source
pub trait OpCall {
    // Required method
    fn call(&mut self, inputs: &[&Var]) -> Result<Vec<Var>, AutoDiffError>;
}
Expand description

Ops that first created, then called needs to follow this behavior.

Required Methods§

Source

fn call(&mut self, inputs: &[&Var]) -> Result<Vec<Var>, AutoDiffError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§