Enum tch::nn::PaddingMode
source · pub enum PaddingMode {
Zeros,
Reflect,
Replicate,
Circular,
}
Expand description
How padding is performed by convolution operations on the edge of the input tensor.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for PaddingMode
impl Clone for PaddingMode
source§fn clone(&self) -> PaddingMode
fn clone(&self) -> PaddingMode
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 PaddingMode
impl Debug for PaddingMode
impl Copy for PaddingMode
Auto Trait Implementations§
impl RefUnwindSafe for PaddingMode
impl Send for PaddingMode
impl Sync for PaddingMode
impl Unpin for PaddingMode
impl UnwindSafe for PaddingMode
Blanket Implementations§
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