pub struct StridedLayoutLaunch<'a, R: Runtime> { /* private fields */ }Implementations§
Source§impl<'a, R: Runtime> StridedLayoutLaunch<'a, R>
impl<'a, R: Runtime> StridedLayoutLaunch<'a, R>
Sourcepub fn new(
shape: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>,
stride: <u32 as LaunchArg>::RuntimeArg<'a, R>,
len: <u32 as LaunchArg>::RuntimeArg<'a, R>,
line_size: u32,
) -> Self
pub fn new( shape: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>, stride: <u32 as LaunchArg>::RuntimeArg<'a, R>, len: <u32 as LaunchArg>::RuntimeArg<'a, R>, line_size: u32, ) -> Self
New kernel
Source§impl<'a, R: Runtime> StridedLayoutLaunch<'a, R>
impl<'a, R: Runtime> StridedLayoutLaunch<'a, R>
pub fn from_shape_strides( client: &ComputeClient<R::Server>, shape: &[usize], strides: &[usize], line_size: u8, ) -> Self
pub fn from_handle( client: &ComputeClient<R::Server>, handle: &TensorHandleRef<'_, R>, line_size: u8, ) -> Self
Trait Implementations§
Source§impl<'a, R: Runtime> ArgSettings<R> for StridedLayoutLaunch<'a, R>
impl<'a, R: Runtime> ArgSettings<R> for StridedLayoutLaunch<'a, 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 StridedLayoutLaunch<'a, R>
impl<'a, R> RefUnwindSafe for StridedLayoutLaunch<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for StridedLayoutLaunch<'a, R>
impl<'a, R> Sync for StridedLayoutLaunch<'a, R>
impl<'a, R> Unpin for StridedLayoutLaunch<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for StridedLayoutLaunch<'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