Skip to main content

StaticParameterVisitorMut

Trait StaticParameterVisitorMut 

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

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

Statically dispatched visitor over one mutable pinned parameter module.

Required Associated Types§

Source

type Error

Failure returned by the consumer.

Required Methods§

Source

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

Visits the mutable 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§