Struct tract_kaldi::model::Kaldi
source · [−]pub struct Kaldi {
pub op_register: KaldiOpRegister,
}Fields
op_register: KaldiOpRegisterTrait Implementations
sourceimpl Framework<KaldiProtoModel, Graph<InferenceFact, Box<dyn InferenceOp + 'static, Global>>> for Kaldi
impl Framework<KaldiProtoModel, Graph<InferenceFact, Box<dyn InferenceOp + 'static, Global>>> for Kaldi
sourcefn 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.
sourcefn model_for_proto_model(
&self,
proto_model: &KaldiProtoModel
) -> TractResult<InferenceModel>
fn model_for_proto_model(
&self,
proto_model: &KaldiProtoModel
) -> TractResult<InferenceModel>
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
fn model_for_path(&self, p: impl AsRef<Path>) -> Result<Model, Error>
fn model_for_path(&self, p: impl AsRef<Path>) -> Result<Model, Error>
Build a model from a filename.
Auto Trait Implementations
impl RefUnwindSafe for Kaldi
impl Send for Kaldi
impl Sync for Kaldi
impl Unpin for Kaldi
impl UnwindSafe for Kaldi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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 T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, 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. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
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. Read more
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. Read more