pub struct ScanDescriptor<const N: usize> {
pub kind: ScanKind,
pub input_shape: [i32; N],
pub scan_axis: u8,
pub reverse: bool,
pub element: ElementKind,
}Expand description
Descriptor for a single-axis scan op.
Fields§
§kind: ScanKindWhich scan kind to apply.
input_shape: [i32; N]Tensor shape — input and output share it.
scan_axis: u8Axis along which the scan accumulates. Must be in [0, N).
reverse: booltrue → scan from the end of the axis toward the start; false
→ standard forward scan (PyTorch default).
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for ScanDescriptor<N>
impl<const N: usize> Clone for ScanDescriptor<N>
Source§fn clone(&self) -> ScanDescriptor<N>
fn clone(&self) -> ScanDescriptor<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 ScanDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ScanDescriptor<N>
impl<const N: usize> RefUnwindSafe for ScanDescriptor<N>
impl<const N: usize> Send for ScanDescriptor<N>
impl<const N: usize> Sync for ScanDescriptor<N>
impl<const N: usize> Unpin for ScanDescriptor<N>
impl<const N: usize> UnsafeUnpin for ScanDescriptor<N>
impl<const N: usize> UnwindSafe for ScanDescriptor<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