pub struct DecodeOptions {
pub beam: f32,
pub max_active: usize,
pub min_active: usize,
}Expand description
How wide to search.
Fields§
§beam: f32Tokens worse than the frame’s best by more than this are dropped.
In nats, since the scores are. f32::INFINITY searches exhaustively,
which the tests compare against.
max_active: usizeA hard cap on the tokens kept per frame, applied after beam.
This is what bounds the work when the beam turns out to be too generous for a confusable stretch of audio.
min_active: usizeA floor under the same cap: the beam is never tightened below this many tokens, so a confident frame does not narrow the search to nothing.
Implementations§
Source§impl DecodeOptions
impl DecodeOptions
Sourcepub fn exhaustive() -> Self
pub fn exhaustive() -> Self
No beam and no cap: every path is kept.
The oracle the decoders are tested against searches everything, so this setting is the one that makes the two comparable.
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
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 DecodeOptions
Source§impl Debug for DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
Source§impl PartialEq for DecodeOptions
impl PartialEq for DecodeOptions
impl StructuralPartialEq for DecodeOptions
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnsafeUnpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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