[][src]Struct ocl_convolution::I8Params

pub struct I8Params {
    pub common: Params,
    pub bit_shift: u8,
    pub scale: i32,
    pub output_bias: i32,
    pub signal_bias: i32,
    pub filter_bias: i32,
}

Params for the quantized convolution.

See Convolution docs for details how to set these parameters.

Fields

common: Params

Common parameters.

bit_shift: u8

Upscale bit shift.

scale: i32

Fixed-point scale of the post-convolution transform.

output_bias: i32

Bias for the post-convolution transform.

signal_bias: i32

Bias for the signal.

filter_bias: i32

Bias for the filters.

Methods

impl I8Params[src]

pub fn convert_scale(bit_shift: u8, scale: f32) -> i32[src]

Converts scale to fixed-point presentation. The resulting value can be used as the scale field.

Trait Implementations

impl Clone for I8Params[src]

impl Copy for I8Params[src]

impl Debug for I8Params[src]

impl From<I8Params> for Params[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.