pub struct AudioEncoderConfig {Show 13 fields
pub d_model: usize,
pub num_mel_bins: usize,
pub num_hidden_layers: usize,
pub encoder_attention_heads: usize,
pub encoder_ffn_dim: usize,
pub downsample_hidden_size: usize,
pub output_dim: usize,
pub max_source_positions: usize,
pub n_window: usize,
pub n_window_infer: usize,
pub conv_chunksize: usize,
pub activation_function: String,
pub scale_embedding: bool,
}Expand description
Qwen3-Omni audio encoder (“qwen3_asr_audio_encoder”) parameters.
Fields§
§d_model: usizeTransformer width (d_model).
num_mel_bins: usizeInput log-mel channels.
Number of transformer encoder layers (num_hidden_layers; the HF
config also carries a redundant encoder_layers that serde ignores).
encoder_attention_heads: usizeAttention heads per encoder layer.
encoder_ffn_dim: usizeFeed-forward inner width.
Conv2d channel count (downsample_hidden_size).
output_dim: usizeAdapter output width (== text hidden_size).
max_source_positions: usizeLength of the sinusoidal positional table.
n_window: usizeHalf-window size in raw mel frames (chunk = 2 * n_window).
n_window_infer: usizeInference attention-window size in raw mel frames.
conv_chunksize: usizeConvolution batch chunk size (irrelevant for correctness, kept for parity).
activation_function: String§scale_embedding: boolImplementations§
Trait Implementations§
Source§impl Clone for AudioEncoderConfig
impl Clone for AudioEncoderConfig
Source§fn clone(&self) -> AudioEncoderConfig
fn clone(&self) -> AudioEncoderConfig
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 AudioEncoderConfig
impl Debug for AudioEncoderConfig
Source§impl<'de> Deserialize<'de> for AudioEncoderConfig
impl<'de> Deserialize<'de> for AudioEncoderConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioEncoderConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioEncoderConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AudioEncoderConfig
impl RefUnwindSafe for AudioEncoderConfig
impl Send for AudioEncoderConfig
impl Sync for AudioEncoderConfig
impl Unpin for AudioEncoderConfig
impl UnsafeUnpin for AudioEncoderConfig
impl UnwindSafe for AudioEncoderConfig
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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