pub enum CandidateMode {
FullVocabulary,
Sparse {
limit: u32,
},
}Expand description
Candidate-logit exposure presented to every stage in a pipeline.
Variants§
FullVocabulary
Expose every vocabulary token in tokenizer order.
Sparse
Expose at most the highest-ranked limit finite raw logits.
Implementations§
Trait Implementations§
Source§impl Clone for CandidateMode
impl Clone for CandidateMode
Source§fn clone(&self) -> CandidateMode
fn clone(&self) -> CandidateMode
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 CandidateMode
Source§impl Debug for CandidateMode
impl Debug for CandidateMode
Source§impl<'de> Deserialize<'de> for CandidateMode
impl<'de> Deserialize<'de> for CandidateMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CandidateMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CandidateMode
Source§impl PartialEq for CandidateMode
impl PartialEq for CandidateMode
Source§impl Serialize for CandidateMode
impl Serialize for CandidateMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CandidateMode
Auto Trait Implementations§
impl Freeze for CandidateMode
impl RefUnwindSafe for CandidateMode
impl Send for CandidateMode
impl Sync for CandidateMode
impl Unpin for CandidateMode
impl UnsafeUnpin for CandidateMode
impl UnwindSafe for CandidateMode
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