pub trait BackendMaxPool2d<N>: Backend<N> {
// Required methods
fn max_pool2d(
&self,
y: &mut Self::Tensor,
x: &Self::Tensor,
conv_info: &Conv2dInfo,
);
fn max_pool2d_backprop(
&self,
dx: &mut Self::Tensor,
dy: &Self::Tensor,
x: &Self::Tensor,
conv_info: &Conv2dInfo,
);
}Required Methods§
fn max_pool2d( &self, y: &mut Self::Tensor, x: &Self::Tensor, conv_info: &Conv2dInfo, )
fn max_pool2d_backprop( &self, dx: &mut Self::Tensor, dy: &Self::Tensor, x: &Self::Tensor, conv_info: &Conv2dInfo, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".