pub struct ModelConfigMeta {
pub model_type: Option<String>,
pub adapter_type: Option<String>,
pub version: Option<String>,
pub sample_rate: Option<u32>,
pub window_secs: Option<f32>,
pub hop_secs: Option<f32>,
pub embedding_dim: Option<usize>,
pub num_speakers: Option<usize>,
pub license: Option<String>,
pub license_url: Option<String>,
pub provenance: Option<String>,
pub source: Option<MetaSource>,
}Expand description
Runtime configuration carried by (or about) a model file.
All fields are optional so partial metadata is representable. Callers merge
this onto their stage-specific defaults (e.g. PowersetConfig).
Fields§
§model_type: Option<String>§adapter_type: Option<String>§version: Option<String>§sample_rate: Option<u32>§window_secs: Option<f32>§hop_secs: Option<f32>§embedding_dim: Option<usize>§num_speakers: Option<usize>§license: Option<String>§license_url: Option<String>§provenance: Option<String>§source: Option<MetaSource>Implementations§
Source§impl ModelConfigMeta
impl ModelConfigMeta
Sourcepub fn from_manifest_entry(entry: &ModelEntry) -> Self
pub fn from_manifest_entry(entry: &ModelEntry) -> Self
Build from a manifest entry’s schema-v2 fields (no ONNX I/O).
Sourcepub fn fill_from(&mut self, other: &Self)
pub fn fill_from(&mut self, other: &Self)
Overlay other onto self: only fill fields that are currently None.
Sourcepub fn from_props(props: &HashMap<String, String>) -> Self
pub fn from_props(props: &HashMap<String, String>) -> Self
Parse a flat key→value map (ONNX custom metadata or test fixture).
Trait Implementations§
Source§impl Clone for ModelConfigMeta
impl Clone for ModelConfigMeta
Source§fn clone(&self) -> ModelConfigMeta
fn clone(&self) -> ModelConfigMeta
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 ModelConfigMeta
impl Debug for ModelConfigMeta
Source§impl Default for ModelConfigMeta
impl Default for ModelConfigMeta
Source§fn default() -> ModelConfigMeta
fn default() -> ModelConfigMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModelConfigMeta
impl PartialEq for ModelConfigMeta
impl StructuralPartialEq for ModelConfigMeta
Auto Trait Implementations§
impl Freeze for ModelConfigMeta
impl RefUnwindSafe for ModelConfigMeta
impl Send for ModelConfigMeta
impl Sync for ModelConfigMeta
impl Unpin for ModelConfigMeta
impl UnsafeUnpin for ModelConfigMeta
impl UnwindSafe for ModelConfigMeta
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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