[−][src]Struct ocl_convolution::PinnedConvolution
Convolution with pinned memory for filters, signal and output.
Methods
impl<T: ConvElement> PinnedConvolution<T>
[src]
pub fn size(&self) -> usize
[src]
Spatial size of the convolution.
pub fn params(&self) -> &T::Params
[src]
Returns general parameters of the convolution.
pub fn set_params(&mut self, params: T::Params) -> Result<()>
[src]
Sets convolution parameters.
pub fn compute(&self, signal: FeatureMap<T>) -> Result<Array4<T>>
[src]
Computes the convolution on the provided signal. Signal dimensions must agree with
the ones provided to the pinned()
constructor.
Trait Implementations
impl<T: Debug + ConvElement> Debug for PinnedConvolution<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for PinnedConvolution<T>
impl<T> Send for PinnedConvolution<T> where
<T as ConvElement>::Acc: Send,
<T as WithParams>::Params: Send,
<T as ConvElement>::Acc: Send,
<T as WithParams>::Params: Send,
impl<T> !Sync for PinnedConvolution<T>
impl<T> Unpin for PinnedConvolution<T> where
T: Unpin,
<T as ConvElement>::Acc: Unpin,
<T as WithParams>::Params: Unpin,
T: Unpin,
<T as ConvElement>::Acc: Unpin,
<T as WithParams>::Params: Unpin,
impl<T> UnwindSafe for PinnedConvolution<T> where
T: UnwindSafe,
<T as ConvElement>::Acc: UnwindSafe,
<T as WithParams>::Params: UnwindSafe,
T: UnwindSafe,
<T as ConvElement>::Acc: UnwindSafe,
<T as WithParams>::Params: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,