pub struct RepeatBackwardDescriptor<const N: usize> {
pub input_shape: [i32; N],
pub repeats: [i32; N],
pub element: ElementKind,
}Expand description
Descriptor for a repeat backward op.
Mirrors crate::RepeatDescriptor for the params the BW needs:
input_shape (= dx shape) and repeats (per-axis factor).
Fields§
§input_shape: [i32; N]Input tensor shape (= dx shape).
repeats: [i32; N]Per-axis repeat factors. Must be >= 1 (same as forward).
element: ElementKindElement type of dy and dx.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for RepeatBackwardDescriptor<N>
impl<const N: usize> Clone for RepeatBackwardDescriptor<N>
Source§fn clone(&self) -> RepeatBackwardDescriptor<N>
fn clone(&self) -> RepeatBackwardDescriptor<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const N: usize> Copy for RepeatBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for RepeatBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for RepeatBackwardDescriptor<N>
impl<const N: usize> Send for RepeatBackwardDescriptor<N>
impl<const N: usize> Sync for RepeatBackwardDescriptor<N>
impl<const N: usize> Unpin for RepeatBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for RepeatBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for RepeatBackwardDescriptor<N>
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