pub struct ScoreOutput { /* private fields */ }Implementations§
Source§impl ScoreOutput
Score dims are [Batch, seqlength]
impl ScoreOutput
Score dims are [Batch, seqlength]
pub fn get_sequences(&self) -> Result<Vec<String>>
pub fn get_decoding_order(&self) -> Result<Vec<u32>>
pub fn get_log_probs(&self) -> &Tensor
pub fn get_pseudo_probabilities(&self) -> Result<Vec<PseudoProbability>>
pub fn save_as_safetensors(&self, filename: String) -> Result<()>
Trait Implementations§
Source§impl Clone for ScoreOutput
impl Clone for ScoreOutput
Source§fn clone(&self) -> ScoreOutput
fn clone(&self) -> ScoreOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScoreOutput
impl !RefUnwindSafe for ScoreOutput
impl Send for ScoreOutput
impl Sync for ScoreOutput
impl Unpin for ScoreOutput
impl !UnwindSafe for ScoreOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more