pub struct TensorMapMeta {
pub format: TensorMapFormat,
pub rank: usize,
pub shape: Vec<usize>,
pub strides: Vec<usize>,
pub elem_stride: Vec<usize>,
pub interleave: TensorMapInterleave,
pub swizzle: TensorMapSwizzle,
pub prefetch: TensorMapPrefetch,
pub oob_fill: OobFill,
pub elem: Elem,
}
Expand description
TensorMap metadata for the opaque proxy used in TMA copies
Fields§
§format: TensorMapFormat
Tensormap format (tiled or im2col)
rank: usize
Rank of the backing tensor
shape: Vec<usize>
Shape of the backing tensor
strides: Vec<usize>
Strides of the backing tensor
elem_stride: Vec<usize>
Element stride, usually 1 but may be 2 for complex tensors For im2col, this is equivalent to the kernel stride
interleave: TensorMapInterleave
Interleave mode
swizzle: TensorMapSwizzle
Swizzle mode
prefetch: TensorMapPrefetch
Prefetch settings
oob_fill: OobFill
OOB fill value
elem: Elem
Element type
Trait Implementations§
Source§impl Clone for TensorMapMeta
impl Clone for TensorMapMeta
Source§fn clone(&self) -> TensorMapMeta
fn clone(&self) -> TensorMapMeta
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 moreAuto Trait Implementations§
impl Freeze for TensorMapMeta
impl RefUnwindSafe for TensorMapMeta
impl Send for TensorMapMeta
impl Sync for TensorMapMeta
impl Unpin for TensorMapMeta
impl UnwindSafe for TensorMapMeta
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