Struct dfdx::tensor_ops::NearestNeighbor
source · pub struct NearestNeighbor;
Expand description
Upscales images using a pixel’s nearest neighbor.
pytorch equivalent F.interpolate(..., mode="nearest")
Trait Implementations§
source§impl Clone for NearestNeighbor
impl Clone for NearestNeighbor
source§fn clone(&self) -> NearestNeighbor
fn clone(&self) -> NearestNeighbor
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 Default for NearestNeighbor
impl Default for NearestNeighbor
source§fn default() -> NearestNeighbor
fn default() -> NearestNeighbor
Returns the “default value” for a type. Read more
impl Copy for NearestNeighbor
impl UpscaleMethod for NearestNeighbor
Auto Trait Implementations§
impl RefUnwindSafe for NearestNeighbor
impl Send for NearestNeighbor
impl Sync for NearestNeighbor
impl Unpin for NearestNeighbor
impl UnwindSafe for NearestNeighbor
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