Skip to main content

UnaryModule

Trait UnaryModule 

Source
pub trait UnaryModule: for<'a> Module<&'a Array, Output = Array> { }
Expand description

Marker trait for a unary neural network module.

This trait should not be implemented directly. Instead, implement Module with Args as a reference to the input.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> UnaryModule for T
where T: for<'a> Module<&'a Array, Output = Array>,