Struct rai_core::primitives::MaxPool1d
source · pub struct MaxPool1d {
pub kernel_size: usize,
pub stride: usize,
pub padding: usize,
pub dilation: usize,
}
Fields§
§kernel_size: usize
§stride: usize
§padding: usize
§dilation: usize
Implementations§
Trait Implementations§
source§impl PartialEq for MaxPool1d
impl PartialEq for MaxPool1d
source§impl Primitive for MaxPool1d
impl Primitive for MaxPool1d
fn clone_boxed(&self) -> Box<dyn Primitive>
fn as_any(&self) -> &dyn Any
fn dot_label(&self) -> String
fn jvp( &self, _output: &Tensor, _primals: &[Tensor], tangents: &[Tensor] ) -> Tensor
fn vjp( &self, output: &Tensor, primals: &[Tensor], cotangent: &Tensor ) -> Vec<Tensor>
impl StructuralPartialEq for MaxPool1d
Auto Trait Implementations§
impl Freeze for MaxPool1d
impl RefUnwindSafe for MaxPool1d
impl Send for MaxPool1d
impl Sync for MaxPool1d
impl Unpin for MaxPool1d
impl UnwindSafe for MaxPool1d
Blanket Implementations§
source§impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more