pub struct RuntimeArgs {
pub size_m: u32,
pub size_n: u32,
pub size_k: u32,
pub padded_channels: FastDivmod,
pub out_h: FastDivmod,
pub out_w: FastDivmod,
}
Fields§
§size_m: u32
§size_n: u32
§size_k: u32
§padded_channels: FastDivmod
§out_h: FastDivmod
§out_w: FastDivmod
Trait Implementations§
Source§impl Clone for RuntimeArgs
impl Clone for RuntimeArgs
Source§fn clone(&self) -> RuntimeArgs
fn clone(&self) -> RuntimeArgs
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 moreSource§impl CubeType for RuntimeArgs
impl CubeType for RuntimeArgs
type ExpandType = RuntimeArgsExpand
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl LaunchArg for RuntimeArgs
impl LaunchArg for RuntimeArgs
Source§type RuntimeArg<'a, R: Runtime> = RuntimeArgsLaunch<'a, R>
type RuntimeArg<'a, R: Runtime> = RuntimeArgsLaunch<'a, R>
The runtime argument for the kernel.
fn compilation_arg<'a, R: Runtime>( runtime_arg: &Self::RuntimeArg<'a, R>, ) -> Self::CompilationArg
Source§impl LaunchArgExpand for RuntimeArgs
impl LaunchArgExpand for RuntimeArgs
Source§type CompilationArg = RuntimeArgsCompilationArg
type CompilationArg = RuntimeArgsCompilationArg
Compilation argument.
Source§fn expand(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as CubeType>::ExpandType
fn expand( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as CubeType>::ExpandType
Register an input variable during compilation that fill the KernelBuilder.
Source§fn expand_output(
arg: &Self::CompilationArg,
builder: &mut KernelBuilder,
) -> <Self as CubeType>::ExpandType
fn expand_output( arg: &Self::CompilationArg, builder: &mut KernelBuilder, ) -> <Self as CubeType>::ExpandType
Register an output variable during compilation that fill the KernelBuilder.
Auto Trait Implementations§
impl Freeze for RuntimeArgs
impl RefUnwindSafe for RuntimeArgs
impl Send for RuntimeArgs
impl Sync for RuntimeArgs
impl Unpin for RuntimeArgs
impl UnwindSafe for RuntimeArgs
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