#[repr(C)]pub struct cuvsBinaryQuantizer {
pub addr: usize,
pub dtype: DLDataType,
}Expand description
@brief Defines and stores threshold for quantization upon training
The quantization is performed by a linear mapping of an interval in the float data type to the full range of the quantized int type.
Fields§
§addr: usize§dtype: DLDataTypeTrait Implementations§
Source§impl Clone for cuvsBinaryQuantizer
impl Clone for cuvsBinaryQuantizer
impl Copy for cuvsBinaryQuantizer
Auto Trait Implementations§
impl Freeze for cuvsBinaryQuantizer
impl RefUnwindSafe for cuvsBinaryQuantizer
impl Send for cuvsBinaryQuantizer
impl Sync for cuvsBinaryQuantizer
impl Unpin for cuvsBinaryQuantizer
impl UnsafeUnpin for cuvsBinaryQuantizer
impl UnwindSafe for cuvsBinaryQuantizer
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