Struct rai_core::primitives::UpsampleNearest2d
source · pub struct UpsampleNearest2d {
pub size: (usize, usize),
}
Fields§
§size: (usize, usize)
Implementations§
Trait Implementations§
source§impl Clone for UpsampleNearest2d
impl Clone for UpsampleNearest2d
source§fn clone(&self) -> UpsampleNearest2d
fn clone(&self) -> UpsampleNearest2d
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 UpsampleNearest2d
impl Debug for UpsampleNearest2d
source§impl<D: Device> Eval<D, UpsampleNearest2d> for CandleBackend
impl<D: Device> Eval<D, UpsampleNearest2d> for CandleBackend
source§impl PartialEq for UpsampleNearest2d
impl PartialEq for UpsampleNearest2d
source§fn eq(&self, other: &UpsampleNearest2d) -> bool
fn eq(&self, other: &UpsampleNearest2d) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for UpsampleNearest2d
impl Primitive for UpsampleNearest2d
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 UpsampleNearest2d
Auto Trait Implementations§
impl Freeze for UpsampleNearest2d
impl RefUnwindSafe for UpsampleNearest2d
impl Send for UpsampleNearest2d
impl Sync for UpsampleNearest2d
impl Unpin for UpsampleNearest2d
impl UnwindSafe for UpsampleNearest2d
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