Struct rai_core::primitives::AvgPool1d
source · pub struct AvgPool1d {
pub kernel_size: usize,
pub stride: usize,
pub padding: usize,
}
Fields§
§kernel_size: usize
§stride: usize
§padding: usize
Implementations§
Trait Implementations§
source§impl PartialEq for AvgPool1d
impl PartialEq for AvgPool1d
source§impl Primitive for AvgPool1d
impl Primitive for AvgPool1d
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 AvgPool1d
Auto Trait Implementations§
impl Freeze for AvgPool1d
impl RefUnwindSafe for AvgPool1d
impl Send for AvgPool1d
impl Sync for AvgPool1d
impl Unpin for AvgPool1d
impl UnwindSafe for AvgPool1d
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