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