#[non_exhaustive]pub enum UpsampleMode {
Nearest,
Bilinear,
}Expand description
Spatial interpolation mode for NCHW upsampling.
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.
Nearest
Select the source pixel at the integer-scaled coordinate.
Bilinear
Apply align-corners-false half-pixel bilinear interpolation.
Trait Implementations§
Source§impl Clone for UpsampleMode
impl Clone for UpsampleMode
impl Copy for UpsampleMode
Source§impl Debug for UpsampleMode
impl Debug for UpsampleMode
impl Eq for UpsampleMode
Source§impl PartialEq for UpsampleMode
impl PartialEq for UpsampleMode
impl StructuralPartialEq for UpsampleMode
Auto Trait Implementations§
impl Forget for UpsampleMode
impl Freeze for UpsampleMode
impl Move for UpsampleMode
impl RefUnwindSafe for UpsampleMode
impl Send for UpsampleMode
impl Sync for UpsampleMode
impl Unpin for UpsampleMode
impl UnsafeUnpin for UpsampleMode
impl UnwindSafe for UpsampleMode
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