Trait ocl_convolution::WithParams

source ·
pub trait WithParams {
    type Params: Clone + Debug + Into<Self::ClParams>;
    type ClParams: OclPrm;

    // Required method
    fn get_generic_params(params: &Self::Params) -> Params;
}
Expand description

Type that can be associated with convolution parameters.

Required Associated Types§

source

type Params: Clone + Debug + Into<Self::ClParams>

Parameters of the convolution.

source

type ClParams: OclPrm

OpenCL-friendly version of parameters.

Required Methods§

source

fn get_generic_params(params: &Self::Params) -> Params

Extracts generic parameters.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WithParams for f32

§

type Params = Params

§

type ClParams = ClParams

source§

fn get_generic_params(params: &Self::Params) -> Params

source§

impl WithParams for i8

§

type Params = I8Params

§

type ClParams = ClI8Params

source§

fn get_generic_params(params: &Self::Params) -> Params

Implementors§