#[repr(u32)]pub enum cuvsNNDescentDistCompDtype {
NND_DIST_COMP_AUTO = 0,
NND_DIST_COMP_FP32 = 1,
NND_DIST_COMP_FP16 = 2,
}Expand description
@brief Dtype to use for distance computation
NND_DIST_COMP_AUTO: Automatically determine the best dtype for distance computation based on the dataset dimensions.NND_DIST_COMP_FP32: Use fp32 distance computation for better precision at the cost of performance and memory usage.NND_DIST_COMP_FP16: Use fp16 distance computation.
Variants§
Trait Implementations§
Source§impl Clone for cuvsNNDescentDistCompDtype
impl Clone for cuvsNNDescentDistCompDtype
Source§fn clone(&self) -> cuvsNNDescentDistCompDtype
fn clone(&self) -> cuvsNNDescentDistCompDtype
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 cuvsNNDescentDistCompDtype
Source§impl Debug for cuvsNNDescentDistCompDtype
impl Debug for cuvsNNDescentDistCompDtype
impl Eq for cuvsNNDescentDistCompDtype
Source§impl Hash for cuvsNNDescentDistCompDtype
impl Hash for cuvsNNDescentDistCompDtype
Source§impl PartialEq for cuvsNNDescentDistCompDtype
impl PartialEq for cuvsNNDescentDistCompDtype
Source§fn eq(&self, other: &cuvsNNDescentDistCompDtype) -> bool
fn eq(&self, other: &cuvsNNDescentDistCompDtype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for cuvsNNDescentDistCompDtype
Auto Trait Implementations§
impl Freeze for cuvsNNDescentDistCompDtype
impl RefUnwindSafe for cuvsNNDescentDistCompDtype
impl Send for cuvsNNDescentDistCompDtype
impl Sync for cuvsNNDescentDistCompDtype
impl Unpin for cuvsNNDescentDistCompDtype
impl UnsafeUnpin for cuvsNNDescentDistCompDtype
impl UnwindSafe for cuvsNNDescentDistCompDtype
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