pub struct WhisperModel<B: Backend> { /* private fields */ }Implementations§
Source§impl<B: Backend> WhisperModel<B>
impl<B: Backend> WhisperModel<B>
pub fn load(source: &dyn ModelSource, device: &Device<B>) -> Result<Self>
Trait Implementations§
Source§impl<B: Backend> SpeechToTextModel<B> for WhisperModel<B>
impl<B: Backend> SpeechToTextModel<B> for WhisperModel<B>
Source§fn metadata(&self) -> &ModelMetadata
fn metadata(&self) -> &ModelMetadata
Architecture + hyperparameter metadata.
Auto Trait Implementations§
impl<B> Freeze for WhisperModel<B>where
<B as BackendTypes>::Device: Freeze,
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for WhisperModel<B>where
<B as BackendTypes>::Device: RefUnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for WhisperModel<B>
impl<B> Sync for WhisperModel<B>
impl<B> Unpin for WhisperModel<B>where
<B as BackendTypes>::Device: Unpin,
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for WhisperModel<B>where
<B as BackendTypes>::Device: UnsafeUnpin,
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for WhisperModel<B>where
<B as BackendTypes>::Device: UnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: UnwindSafe,
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