pub struct BatchedGlobalLayoutLaunch<'a, R: Runtime> { /* private fields */ }Implementations§
Source§impl<'a, R: Runtime> BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R: Runtime> BatchedGlobalLayoutLaunch<'a, R>
Sourcepub fn new(
batch_shape: <Sequence<FastDivmod> as LaunchArg>::RuntimeArg<'a, R>,
batch_strides: <Sequence<u32> as LaunchArg>::RuntimeArg<'a, R>,
rows: <u32 as LaunchArg>::RuntimeArg<'a, R>,
cols: <u32 as LaunchArg>::RuntimeArg<'a, R>,
stride_row: <u32 as LaunchArg>::RuntimeArg<'a, R>,
stride_col: <u32 as LaunchArg>::RuntimeArg<'a, R>,
line_size: u32,
packing: u32,
config: GlobalLayoutConfig,
) -> Self
pub fn new( batch_shape: <Sequence<FastDivmod> as LaunchArg>::RuntimeArg<'a, R>, batch_strides: <Sequence<u32> as LaunchArg>::RuntimeArg<'a, R>, rows: <u32 as LaunchArg>::RuntimeArg<'a, R>, cols: <u32 as LaunchArg>::RuntimeArg<'a, R>, stride_row: <u32 as LaunchArg>::RuntimeArg<'a, R>, stride_col: <u32 as LaunchArg>::RuntimeArg<'a, R>, line_size: u32, packing: u32, config: GlobalLayoutConfig, ) -> Self
New kernel
Source§impl<'a, R: Runtime> BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R: Runtime> BatchedGlobalLayoutLaunch<'a, R>
pub fn from_handle( client: &ComputeClient<R::Server>, handle: &TensorHandleRef<'a, R>, problem: &MatmulProblem, line_size: u8, config: GlobalLayoutConfig, ) -> Self
pub fn from_quantized_handle( client: &ComputeClient<R::Server>, values: &TensorHandleRef<'a, R>, scales: &TensorHandleRef<'a, R>, shape: &'a [usize], problem: &MatmulProblem, scheme: QuantScheme, line_size: u8, config: GlobalLayoutConfig, ) -> (BatchedGlobalLayoutLaunch<'a, R>, BatchedGlobalScaleLayoutArgs<'a, R>)
Trait Implementations§
Source§impl<'a, R: Runtime> ArgSettings<R> for BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R: Runtime> ArgSettings<R> for BatchedGlobalLayoutLaunch<'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 BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R> RefUnwindSafe for BatchedGlobalLayoutLaunch<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R> Sync for BatchedGlobalLayoutLaunch<'a, R>
impl<'a, R> Unpin for BatchedGlobalLayoutLaunch<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for BatchedGlobalLayoutLaunch<'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