pub struct FlipDescriptor<const N: usize> {
pub shape: [i32; N],
pub flip_axes: [bool; N],
pub element: ElementKind,
}Expand description
Descriptor for a flip op.
flip_axes[d] is true if axis d should be reversed, false
otherwise.
Fields§
§shape: [i32; N]Input/output tensor shape (flip preserves shape).
flip_axes: [bool; N]Per-axis mask: true = reverse, false = no-op.
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for FlipDescriptor<N>
impl<const N: usize> Clone for FlipDescriptor<N>
Source§fn clone(&self) -> FlipDescriptor<N>
fn clone(&self) -> FlipDescriptor<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 FlipDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FlipDescriptor<N>
impl<const N: usize> RefUnwindSafe for FlipDescriptor<N>
impl<const N: usize> Send for FlipDescriptor<N>
impl<const N: usize> Sync for FlipDescriptor<N>
impl<const N: usize> Unpin for FlipDescriptor<N>
impl<const N: usize> UnsafeUnpin for FlipDescriptor<N>
impl<const N: usize> UnwindSafe for FlipDescriptor<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