Struct tract_kaldi::model::KaldiProtoModel
source · pub struct KaldiProtoModel {
pub config_lines: ConfigLines,
pub components: HashMap<String, Component>,
pub adjust_final_offset: isize,
}
Fields§
§config_lines: ConfigLines
§components: HashMap<String, Component>
§adjust_final_offset: isize
Trait Implementations§
source§impl Clone for KaldiProtoModel
impl Clone for KaldiProtoModel
source§fn clone(&self) -> KaldiProtoModel
fn clone(&self) -> KaldiProtoModel
Returns a copy 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 moresource§impl Debug for KaldiProtoModel
impl Debug for KaldiProtoModel
source§impl Framework<KaldiProtoModel, Graph<InferenceFact, Box<dyn InferenceOp, Global>>> for Kaldi
impl Framework<KaldiProtoModel, Graph<InferenceFact, Box<dyn InferenceOp, Global>>> for Kaldi
source§fn proto_model_for_read(&self, r: &mut dyn Read) -> TractResult<KaldiProtoModel>
fn proto_model_for_read(&self, r: &mut dyn Read) -> TractResult<KaldiProtoModel>
Parse a proto model from a reader.
source§fn model_for_proto_model_with_symbols(
&self,
proto_model: &KaldiProtoModel,
symbols: &SymbolTable
) -> TractResult<InferenceModel>
fn model_for_proto_model_with_symbols( &self, proto_model: &KaldiProtoModel, symbols: &SymbolTable ) -> TractResult<InferenceModel>
Translate a proto model into a model, with some symbols already listed.
§fn model_for_proto_model(&self, proto: &ProtoModel) -> Result<Model, Error>
fn model_for_proto_model(&self, proto: &ProtoModel) -> Result<Model, Error>
Translate a proto model into a model.
§fn proto_model_for_path(&self, p: impl AsRef<Path>) -> Result<ProtoModel, Error>
fn proto_model_for_path(&self, p: impl AsRef<Path>) -> Result<ProtoModel, Error>
Read a proto model from a filename.
§fn model_for_read(&self, r: &mut dyn Read) -> Result<Model, Error>
fn model_for_read(&self, r: &mut dyn Read) -> Result<Model, Error>
Read a model from a reader
Auto Trait Implementations§
impl RefUnwindSafe for KaldiProtoModel
impl Send for KaldiProtoModel
impl Sync for KaldiProtoModel
impl Unpin for KaldiProtoModel
impl UnwindSafe for KaldiProtoModel
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.