pub struct Whisper {
pub encoder: AudioEncoder,
pub decoder: TextDecoder,
pub config: Config,
}
Fields§
§encoder: AudioEncoder
§decoder: TextDecoder
§config: Config
Implementations§
source§impl Whisper
impl Whisper
pub fn load(vb: &VarBuilder<'_>, config: Config) -> Result<Self>
pub fn reset_kv_cache(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Whisper
impl !RefUnwindSafe for Whisper
impl Send for Whisper
impl Sync for Whisper
impl Unpin for Whisper
impl !UnwindSafe for Whisper
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