pub struct GaVadArgs<'a> {
pub key: u64,
pub n_mel: usize,
pub dim: usize,
pub heads: usize,
pub kernel: usize,
pub pre: [(&'a [f32], &'a [f32], usize, usize); 2],
pub layers: Vec<GaVadLayer<'a>>,
pub head: GaLin<'a>,
pub cos: &'a [f32],
pub sin: &'a [f32],
}Expand description
GigaAM’s voice-activity model for gigaam_vad: two convolutions over
time (kernel 3, stride 2, one zero frame on both sides, ReLU; pre[i] =
weight [out][3][in], bias, out, in), the layers, and head (one logit
a step). cos / sin are [step][head_dim / 2].
Fields§
§key: u64§n_mel: usize§dim: usize§heads: usize§kernel: usize§pre: [(&'a [f32], &'a [f32], usize, usize); 2]§layers: Vec<GaVadLayer<'a>>§head: GaLin<'a>§cos: &'a [f32]§sin: &'a [f32]Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GaVadArgs<'a>
impl<'a> !UnwindSafe for GaVadArgs<'a>
impl<'a> Forget for GaVadArgs<'a>
impl<'a> Freeze for GaVadArgs<'a>
impl<'a> Move for GaVadArgs<'a>
impl<'a> Send for GaVadArgs<'a>
impl<'a> Sync for GaVadArgs<'a>
impl<'a> Unpin for GaVadArgs<'a>
impl<'a> UnsafeUnpin for GaVadArgs<'a>
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