#[non_exhaustive]pub enum PerRowSampler {
TopK,
TopP,
MinP,
TopKTopP,
}Expand description
Which per-row sampler to run (thresholds supplied as device arrays in the args, not the descriptor).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopK
Per-row top-K (top_k_arr i32 required).
TopP
Per-row top-P (top_p_arr required).
MinP
Per-row min-P (min_p_arr required).
TopKTopP
Per-row top-K + top-P (top_k_arr i32 + top_p_arr f32 required).
Trait Implementations§
Source§impl Clone for PerRowSampler
impl Clone for PerRowSampler
Source§fn clone(&self) -> PerRowSampler
fn clone(&self) -> PerRowSampler
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 PerRowSampler
Source§impl Debug for PerRowSampler
impl Debug for PerRowSampler
impl Eq for PerRowSampler
Source§impl PartialEq for PerRowSampler
impl PartialEq for PerRowSampler
Source§fn eq(&self, other: &PerRowSampler) -> bool
fn eq(&self, other: &PerRowSampler) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PerRowSampler
Auto Trait Implementations§
impl Freeze for PerRowSampler
impl RefUnwindSafe for PerRowSampler
impl Send for PerRowSampler
impl Sync for PerRowSampler
impl Unpin for PerRowSampler
impl UnsafeUnpin for PerRowSampler
impl UnwindSafe for PerRowSampler
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