[][src]Struct ocl_convolution::PinnedConvolution

pub struct PinnedConvolution<T: ConvElement>(_);

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

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

impl<T> UnwindSafe for PinnedConvolution<T> where
    T: UnwindSafe,
    <T as ConvElement>::Acc: UnwindSafe,
    <T as WithParams>::Params: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.