pub struct WeightLayoutLaunch<'a, R: Runtime> {
pub channels: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>,
pub shape_k: <u32 as LaunchArg>::RuntimeArg<'a, R>,
pub shape_n: <u32 as LaunchArg>::RuntimeArg<'a, R>,
pub params: ConvolutionParams,
pub config: GlobalMemoryConfig,
/* private fields */
}Fields§
§channels: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>§shape_k: <u32 as LaunchArg>::RuntimeArg<'a, R>§shape_n: <u32 as LaunchArg>::RuntimeArg<'a, R>§params: ConvolutionParams§config: GlobalMemoryConfigImplementations§
Source§impl<'a, R: Runtime> WeightLayoutLaunch<'a, R>
impl<'a, R: Runtime> WeightLayoutLaunch<'a, R>
Sourcepub fn new(
channels: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>,
shape_k: <u32 as LaunchArg>::RuntimeArg<'a, R>,
shape_n: <u32 as LaunchArg>::RuntimeArg<'a, R>,
params: ConvolutionParams,
config: GlobalMemoryConfig,
) -> Self
pub fn new( channels: <FastDivmod as LaunchArg>::RuntimeArg<'a, R>, shape_k: <u32 as LaunchArg>::RuntimeArg<'a, R>, shape_n: <u32 as LaunchArg>::RuntimeArg<'a, R>, params: ConvolutionParams, config: GlobalMemoryConfig, ) -> Self
New kernel
Source§impl<'a, R: Runtime> WeightLayoutLaunch<'a, R>
impl<'a, R: Runtime> WeightLayoutLaunch<'a, R>
pub fn from_args( client: &ComputeClient<R::Server>, problem: &ConvolutionProblem, params: ConvolutionParams, config: GlobalMemoryConfig, ) -> Self
Trait Implementations§
Source§impl<'a, R: Runtime> ArgSettings<R> for WeightLayoutLaunch<'a, R>
impl<'a, R: Runtime> ArgSettings<R> for WeightLayoutLaunch<'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 WeightLayoutLaunch<'a, R>
impl<'a, R> RefUnwindSafe for WeightLayoutLaunch<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for WeightLayoutLaunch<'a, R>
impl<'a, R> Sync for WeightLayoutLaunch<'a, R>
impl<'a, R> Unpin for WeightLayoutLaunch<'a, R>where
R: Unpin,
impl<'a, R> UnwindSafe for WeightLayoutLaunch<'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