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 storage_ty: StorageType,
}Expand description
TensorMap metadata for the opaque proxy used in TMA copies
Fields§
§format: TensorMapFormatTensormap format (tiled or im2col)
rank: usizeRank 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: TensorMapInterleaveInterleave mode
swizzle: TensorMapSwizzleSwizzle mode
prefetch: TensorMapPrefetchPrefetch settings
oob_fill: OobFillOOB fill value
storage_ty: StorageTypeStorage type
Trait Implementations§
Source§impl Clone for TensorMapMeta
impl Clone for TensorMapMeta
Source§fn clone(&self) -> TensorMapMeta
fn clone(&self) -> TensorMapMeta
Returns a duplicate 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