pub trait Dropout: DeviceBase {
// Required methods
fn dropout<T: Num>(
x: &Matrix<Ref<&T>, DimDyn, Self>,
state: &mut DropoutState<T, Self>,
) -> Matrix<Owned<T>, DimDyn, Self>;
fn dropout_grad<T: Num>(
dy: &Matrix<Ref<&T>, DimDyn, Self>,
state: &DropoutState<T, Self>,
) -> Matrix<Owned<T>, DimDyn, Self>;
}
Required Methods§
fn dropout<T: Num>( x: &Matrix<Ref<&T>, DimDyn, Self>, state: &mut DropoutState<T, Self>, ) -> Matrix<Owned<T>, DimDyn, Self>
fn dropout_grad<T: Num>( dy: &Matrix<Ref<&T>, DimDyn, Self>, state: &DropoutState<T, Self>, ) -> Matrix<Owned<T>, DimDyn, Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.