#[non_exhaustive]pub enum Padding {
Explicit(Vec<i64>),
Same,
Valid,
}Expand description
Convolution / pooling padding specification.
Upstream NIR accepts integer extents or the string modes "same" / "valid".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Explicit(Vec<i64>)
Explicit per-axis padding extents (length 1 for 1d, 2 for 2d, …).
Same
Pad so that spatial output size matches input ("same").
Valid
No padding ("valid").
Implementations§
Trait Implementations§
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnsafeUnpin for Padding
impl UnwindSafe for Padding
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