#[non_exhaustive]pub enum RealtimeConfigError {
EmptyCodebookGeometry,
CodebookPartition {
total: usize,
input: usize,
generated: usize,
},
DepthCodebookGeometry {
generated: usize,
depth: usize,
total: usize,
},
CodebookCountOverflow,
NegativePaddingToken {
text: i32,
audio: i32,
},
DelayCount {
expected: usize,
actual: usize,
},
DelayOutOfRange {
slot: usize,
delay: usize,
maximum: usize,
},
SamplingTemperature {
text: f32,
audio: f32,
},
SamplingTopK {
text: Option<usize>,
audio: Option<usize>,
},
}Expand description
Invalid portable realtime configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyCodebookGeometry
Every realtime codebook dimension must be nonzero.
CodebookPartition
Input and generated codebooks must partition the temporal codebooks.
Fields
DepthCodebookGeometry
The depth predictor must contain every generated codebook and no more than the complete temporal audio geometry.
Fields
CodebookCountOverflow
The text-plus-audio slot count overflowed portable geometry.
NegativePaddingToken
Padding tokens used by realtime model inputs must be non-negative.
DelayCount
The delay schedule must describe text and every temporal audio codebook.
DelayOutOfRange
One delay exceeds the portable coordinate bound.
Fields
SamplingTemperature
Sampling temperatures must be finite and nonnegative.
SamplingTopK
Top-k truncation, when selected, must admit at least one token.
Trait Implementations§
Source§impl Clone for RealtimeConfigError
impl Clone for RealtimeConfigError
Source§fn clone(&self) -> RealtimeConfigError
fn clone(&self) -> RealtimeConfigError
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 moreSource§impl Debug for RealtimeConfigError
impl Debug for RealtimeConfigError
Source§impl Display for RealtimeConfigError
impl Display for RealtimeConfigError
Source§impl Error for RealtimeConfigError
impl Error for RealtimeConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RealtimeConfigError
impl PartialEq for RealtimeConfigError
impl StructuralPartialEq for RealtimeConfigError
Auto Trait Implementations§
impl Freeze for RealtimeConfigError
impl RefUnwindSafe for RealtimeConfigError
impl Send for RealtimeConfigError
impl Sync for RealtimeConfigError
impl Unpin for RealtimeConfigError
impl UnsafeUnpin for RealtimeConfigError
impl UnwindSafe for RealtimeConfigError
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