pub struct Activation {
pub min: i32,
pub max: i32,
}Expand description
Quantized activation clamping range (min, max).
Fields§
§min: i32Minimum clamping threshold.
max: i32Maximum clamping threshold.
Implementations§
Source§impl Activation
impl Activation
Sourcepub const fn int8_unconstrained() -> Self
pub const fn int8_unconstrained() -> Self
Returns an unconstrained range for int8 (-128 to 127).
Sourcepub const fn int16_unconstrained() -> Self
pub const fn int16_unconstrained() -> Self
Returns an unconstrained range for int16 (-32768 to 32767).
Trait Implementations§
Source§impl Clone for Activation
impl Clone for Activation
Source§fn clone(&self) -> Activation
fn clone(&self) -> Activation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Activation
Source§impl Debug for Activation
impl Debug for Activation
impl Eq for Activation
Source§impl PartialEq for Activation
impl PartialEq for Activation
impl StructuralPartialEq for Activation
Auto Trait Implementations§
impl Freeze for Activation
impl RefUnwindSafe for Activation
impl Send for Activation
impl Sync for Activation
impl Unpin for Activation
impl UnsafeUnpin for Activation
impl UnwindSafe for Activation
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