#[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
Source§fn clone(&self) -> cuvsBinaryQuantizer
fn clone(&self) -> cuvsBinaryQuantizer
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 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