pub struct TopK {
pub k: i32,
}Expand description
Keeps the k candidates with the largest logits.
Fields§
§k: i32Maximum survivor count. Non-positive values disable the stage.
Trait Implementations§
impl Copy for TopK
impl Eq for TopK
impl StructuralPartialEq for TopK
Auto Trait Implementations§
impl Freeze for TopK
impl RefUnwindSafe for TopK
impl Send for TopK
impl Sync for TopK
impl Unpin for TopK
impl UnsafeUnpin for TopK
impl UnwindSafe for TopK
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