Type Alias U32

Source
pub type U32<const MIN: i64, const MAX: i64> = IntRange<u32, 0xffffffff, MIN, MAX>;
Expand description

Quantizes/dequantizes to a value stored in an u32, using the full range of the u32. The range for the unquantized value is between MIN and MAX. Values outside of this are clamped.

Aliased Type§

struct U32<const MIN: i64, const MAX: i64>(/* private fields */);

Trait Implementations

Source§

impl<T, const Q_MAX: u32, const MIN: i64, const MAX: i64> Linear for IntRange<T, Q_MAX, MIN, MAX>
where T: 'static + Copy, u32: TryInto<T>,

Source§

type Type = T

Source§

fn range() -> Range<f64>

The minimum and maximum input values that can be quantized.
Source§

fn q_max() -> Self::Type

Maximum for the quantized value. The quantized value will be between 0 and this value (inclusive).