Struct ocl_convolution::I8Params
source · 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,
}
Expand description
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.
Implementations§
Trait Implementations§
impl Copy for I8Params
Auto Trait Implementations§
impl Freeze for I8Params
impl RefUnwindSafe for I8Params
impl Send for I8Params
impl Sync for I8Params
impl Unpin for I8Params
impl UnwindSafe for I8Params
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more