Struct rai_core::primitives::Convolution
source · pub struct Convolution {
pub padding: Vec<usize>,
pub stride: Vec<usize>,
pub dilation: Vec<usize>,
pub groups: usize,
}
Fields§
§padding: Vec<usize>
§stride: Vec<usize>
§dilation: Vec<usize>
§groups: usize
Implementations§
Trait Implementations§
source§impl Clone for Convolution
impl Clone for Convolution
source§fn clone(&self) -> Convolution
fn clone(&self) -> Convolution
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Convolution
impl Debug for Convolution
source§impl<D: Device> Eval<D, Convolution> for CandleBackend
impl<D: Device> Eval<D, Convolution> for CandleBackend
source§impl PartialEq for Convolution
impl PartialEq for Convolution
source§fn eq(&self, other: &Convolution) -> bool
fn eq(&self, other: &Convolution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for Convolution
impl Primitive for Convolution
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 Convolution
Auto Trait Implementations§
impl RefUnwindSafe for Convolution
impl Send for Convolution
impl Sync for Convolution
impl Unpin for Convolution
impl UnwindSafe for Convolution
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