pub struct GreedySampler;Expand description
Always picks the highest-scoring token: argmax(logits).
Trait Implementations§
Source§impl Clone for GreedySampler
impl Clone for GreedySampler
Source§fn clone(&self) -> GreedySampler
fn clone(&self) -> GreedySampler
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 GreedySampler
Source§impl Debug for GreedySampler
impl Debug for GreedySampler
Source§impl Default for GreedySampler
impl Default for GreedySampler
Source§fn default() -> GreedySampler
fn default() -> GreedySampler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GreedySampler
impl RefUnwindSafe for GreedySampler
impl Send for GreedySampler
impl Sync for GreedySampler
impl Unpin for GreedySampler
impl UnsafeUnpin for GreedySampler
impl UnwindSafe for GreedySampler
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