Skip to main content

ForwardStrategy

Trait ForwardStrategy 

Source
pub trait ForwardStrategy {
    // Required method
    fn forward(
        &self,
        graph: &Graph,
        env: &ForwardEnv<'_>,
        x: &Value,
    ) -> Result<Value>;
}
Expand description

How a forward pass feeds data through the compiled graph.

Required Methods§

Source

fn forward( &self, graph: &Graph, env: &ForwardEnv<'_>, x: &Value, ) -> Result<Value>

Execute a forward pass, returning the final output.

Implementors§