pub struct TensorMapArg<'a, R: Runtime> {
pub tensor: TensorArg<'a, R>,
pub metadata: TensorMapMeta,
}
Expand description
Grid constant tensor map, currently only maps to CUDA tensormap. May be interleaved or swizzled, but last dimension must be contiguous (since strides don’t include the last dimension).
The tensormap is treated as an opaque type at runtime.
Fields§
§tensor: TensorArg<'a, R>
§metadata: TensorMapMeta
Implementations§
Source§impl<'a, R: Runtime> TensorMapArg<'a, R>
impl<'a, R: Runtime> TensorMapArg<'a, R>
pub fn new( format: TensorMapFormat, tensor: TensorArg<'a, R>, elem: Elem, ) -> Self
pub fn with_elem_stride(self, elem_stride: Vec<usize>) -> Self
pub fn with_interleave(self, interleave: TensorMapInterleave) -> Self
pub fn with_swizzle(self, swizzle: TensorMapSwizzle) -> Self
pub fn with_prefetch(self, prefetch: TensorMapPrefetch) -> Self
pub fn with_nan_fill(self) -> Self
Trait Implementations§
Source§impl<R: Runtime> ArgSettings<R> for TensorMapArg<'_, R>
impl<R: Runtime> ArgSettings<R> for TensorMapArg<'_, R>
Source§fn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information of an argument to the KernelLauncher.
Auto Trait Implementations§
impl<'a, R> Freeze for TensorMapArg<'a, R>
impl<'a, R> RefUnwindSafe for TensorMapArg<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for TensorMapArg<'a, R>
impl<'a, R> Sync for TensorMapArg<'a, R>
impl<'a, R> Unpin for TensorMapArg<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for TensorMapArg<'a, R>where
R: UnwindSafe,
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