pub struct Im2col;Expand description
Im2col indexing. Loads a “column” (not the same column as im2col) of pixels into shared
memory, with a certain offset (kernel position). The corners are the bounds to load pixels
from at offset 0, so the top left corner of the kernel. The offset is added to the
corner offsets, so a (-1, -1) corner will stop the bounding box at (1, 1) for kernel
offset (2, 2).
Trait Implementations§
impl Copy for Im2col
Source§impl CubeType for Im2col
impl CubeType for Im2col
type ExpandType = Im2colExpand
Source§impl LaunchArg for Im2col
impl LaunchArg for Im2col
Source§type RuntimeArg<R: Runtime> = Im2colLaunch<R>
type RuntimeArg<R: Runtime> = Im2colLaunch<R>
The runtime argument for the kernel.
Source§type CompilationArg = Im2colCompilationArg
type CompilationArg = Im2colCompilationArg
Compilation argument.
fn register<R: Runtime>( arg: Self::RuntimeArg<R>, launcher: &mut KernelLauncher<R>, ) -> Self::CompilationArg
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 a variable during compilation that fill the
KernelBuilder.Source§impl TensorMapKind for Im2col
impl TensorMapKind for Im2col
type Args = Im2colArgs
fn as_format(args: Self::Args) -> TensorMapFormat
Auto Trait Implementations§
impl Freeze for Im2col
impl RefUnwindSafe for Im2col
impl Send for Im2col
impl Sync for Im2col
impl Unpin for Im2col
impl UnsafeUnpin for Im2col
impl UnwindSafe for Im2col
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneExpand for Twhere
T: Clone,
impl<T> CloneExpand for Twhere
T: Clone,
fn __expand_clone_method(&self, _: &Scope) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more