pub struct VoxtralTtsWeightStore { /* private fields */ }Implementations§
Source§impl VoxtralTtsWeightStore
impl VoxtralTtsWeightStore
pub fn open(model_dir: &Path) -> Result<VoxtralTtsWeightStore, Error>
pub fn model_dir(&self) -> &Path
pub fn keys(&self) -> &HashSet<String>
pub fn load_prefix(&self, prefix: &str) -> Result<WeightMap, Error>
pub fn load_codec(&self) -> Result<WeightMap, Error>
pub fn load_acoustic(&self) -> Result<WeightMap, Error>
pub fn load_backbone(&self) -> Result<WeightMap, Error>
pub fn tensor_snapshot_for_embed( &self, ) -> Result<HashMap<String, (Vec<f32>, Vec<usize>)>, Error>
pub fn tensor_snapshot_for_backbone( &self, ) -> Result<HashMap<String, (Vec<f32>, Vec<usize>)>, Error>
pub fn tensor_snapshot( &self, prefix: &str, ) -> Result<HashMap<String, (Vec<f32>, Vec<usize>)>, Error>
Trait Implementations§
Source§impl Clone for VoxtralTtsWeightStore
impl Clone for VoxtralTtsWeightStore
Source§fn clone(&self) -> VoxtralTtsWeightStore
fn clone(&self) -> VoxtralTtsWeightStore
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 moreAuto Trait Implementations§
impl Freeze for VoxtralTtsWeightStore
impl RefUnwindSafe for VoxtralTtsWeightStore
impl Send for VoxtralTtsWeightStore
impl Sync for VoxtralTtsWeightStore
impl Unpin for VoxtralTtsWeightStore
impl UnsafeUnpin for VoxtralTtsWeightStore
impl UnwindSafe for VoxtralTtsWeightStore
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> 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