[−][src]Struct ocl_convolution::I8Params
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
impl RefUnwindSafe for I8Params
impl Send for I8Params
impl Sync for I8Params
impl Unpin for I8Params
impl UnwindSafe for I8Params
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,