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.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§