pub struct Wav2Vec2BertPreprocessConfig {
pub sampling_rate: usize,
pub num_mel_bins: usize,
pub num_frames: usize,
}Fields§
§sampling_rate: usize§num_mel_bins: usize§num_frames: usizeTarget frame count for fixed-shape encoders.
Implementations§
Source§impl Wav2Vec2BertPreprocessConfig
impl Wav2Vec2BertPreprocessConfig
pub fn from_file(path: &Path) -> Result<Wav2Vec2BertPreprocessConfig, Error>
pub fn w2v_bert_2_0() -> Wav2Vec2BertPreprocessConfig
pub fn feature_dim(&self) -> usize
Trait Implementations§
Source§impl Clone for Wav2Vec2BertPreprocessConfig
impl Clone for Wav2Vec2BertPreprocessConfig
Source§fn clone(&self) -> Wav2Vec2BertPreprocessConfig
fn clone(&self) -> Wav2Vec2BertPreprocessConfig
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 moreSource§impl Debug for Wav2Vec2BertPreprocessConfig
impl Debug for Wav2Vec2BertPreprocessConfig
Source§impl Default for Wav2Vec2BertPreprocessConfig
impl Default for Wav2Vec2BertPreprocessConfig
Source§fn default() -> Wav2Vec2BertPreprocessConfig
fn default() -> Wav2Vec2BertPreprocessConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Wav2Vec2BertPreprocessConfig
impl<'de> Deserialize<'de> for Wav2Vec2BertPreprocessConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Wav2Vec2BertPreprocessConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Wav2Vec2BertPreprocessConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Wav2Vec2BertPreprocessConfig
impl Serialize for Wav2Vec2BertPreprocessConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Wav2Vec2BertPreprocessConfig
impl RefUnwindSafe for Wav2Vec2BertPreprocessConfig
impl Send for Wav2Vec2BertPreprocessConfig
impl Sync for Wav2Vec2BertPreprocessConfig
impl Unpin for Wav2Vec2BertPreprocessConfig
impl UnsafeUnpin for Wav2Vec2BertPreprocessConfig
impl UnwindSafe for Wav2Vec2BertPreprocessConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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