pub enum ConvolutionMode {
Exact = 0,
FixedPoint = 1,
}
Expand description
Declares preferred convolution precision mode for integer storage types.
Variants§
Exact = 0
Exact precision, f32 accumulator and weights will be used.
FixedPoint = 1
Convolution in numerical approximation, this is faster than exact convolution but may change result.
Estimated error not less than 1-2%.
Trait Implementations§
Source§impl Clone for ConvolutionMode
impl Clone for ConvolutionMode
Source§fn clone(&self) -> ConvolutionMode
fn clone(&self) -> ConvolutionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ConvolutionMode
impl Default for ConvolutionMode
Source§fn default() -> ConvolutionMode
fn default() -> ConvolutionMode
Returns the “default value” for a type. Read more
Source§impl Ord for ConvolutionMode
impl Ord for ConvolutionMode
Source§fn cmp(&self, other: &ConvolutionMode) -> Ordering
fn cmp(&self, other: &ConvolutionMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConvolutionMode
impl PartialEq for ConvolutionMode
Source§impl PartialOrd for ConvolutionMode
impl PartialOrd for ConvolutionMode
impl Copy for ConvolutionMode
impl Eq for ConvolutionMode
impl StructuralPartialEq for ConvolutionMode
Auto Trait Implementations§
impl Freeze for ConvolutionMode
impl RefUnwindSafe for ConvolutionMode
impl Send for ConvolutionMode
impl Sync for ConvolutionMode
impl Unpin for ConvolutionMode
impl UnwindSafe for ConvolutionMode
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§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