Skip to main content

StaticParameterVisitor

Trait StaticParameterVisitor 

Source
pub trait StaticParameterVisitor<B: NeuralBackend> {
    type Error;

    // Required method
    fn visit<M>(&mut self, role: &str, module: &M) -> Result<(), Self::Error>
       where M: Parameterized<B::Tensor>;
}
Expand description

Statically dispatched visitor over one immutable pinned parameter module.

Required Associated Types§

Source

type Error

Failure returned by the consumer.

Required Methods§

Source

fn visit<M>(&mut self, role: &str, module: &M) -> Result<(), Self::Error>
where M: Parameterized<B::Tensor>,

Visits the module bound to one architecture-declared static role.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§