pub struct CpCompiledEngine { /* private fields */ }Implementations§
Source§impl CpCompiledEngine
impl CpCompiledEngine
pub fn open( model_dir: &Path, store: &Qwen3TtsWeightStore, cp: &CodePredictorConfig, device: Device, ) -> Result<CpCompiledEngine, Error>
pub fn warmup(&mut self, max_frames: usize) -> Result<(), Error>
pub fn reset_kv(&mut self)
pub fn prefill( &mut self, embeds: ArrayBase<ViewRepr<&f32>, Dim<[usize; 2]>>, ) -> Result<ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>, Error>
pub fn decode_step( &mut self, embed: ArrayBase<ViewRepr<&f32>, Dim<[usize; 1]>>, ) -> Result<ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>, Error>
pub fn predict_groups( &mut self, talker_codec: &ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>, group_embeds: &[ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>], lm_heads: &[ArrayBase<OwnedRepr<f32>, Dim<[usize; 2]>>], talker_hidden: ArrayBase<ViewRepr<&f32>, Dim<[usize; 1]>>, group0: u32, ) -> Result<Vec<u32>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for CpCompiledEngine
impl !Sync for CpCompiledEngine
impl !UnwindSafe for CpCompiledEngine
impl Freeze for CpCompiledEngine
impl Send for CpCompiledEngine
impl Unpin for CpCompiledEngine
impl UnsafeUnpin for CpCompiledEngine
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> 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