Struct ocl_convolution::FiltersConvolution
source · pub struct FiltersConvolution<T: ConvElement>(/* private fields */);
Expand description
Convolution with pinned filters memory.
Implementations§
source§impl<T: ConvElement> FiltersConvolution<T>
impl<T: ConvElement> FiltersConvolution<T>
sourcepub fn set_params(&mut self, params: T::Params) -> Result<()>
pub fn set_params(&mut self, params: T::Params) -> Result<()>
Sets convolution parameters.
sourcepub fn pin(self, signal_shape: FeatureMapShape) -> Result<PinnedConvolution<T>>
pub fn pin(self, signal_shape: FeatureMapShape) -> Result<PinnedConvolution<T>>
Pins signal and output memory for this convolution.
sourcepub fn compute(&self, signal: FeatureMap<'_, T>) -> Result<Array4<T>>
pub fn compute(&self, signal: FeatureMap<'_, T>) -> Result<Array4<T>>
Computes the convolution on the provided signal.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for FiltersConvolution<T>
impl<T> !RefUnwindSafe for FiltersConvolution<T>
impl<T> Send for FiltersConvolution<T>
impl<T> !Sync for FiltersConvolution<T>
impl<T> Unpin for FiltersConvolution<T>
impl<T> UnwindSafe for FiltersConvolution<T>
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
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