pub struct GaFront<'a> {
pub n_mel: usize,
pub conv: [(&'a [f32], &'a [f32], usize); 3],
pub dw: (&'a [f32], &'a [f32]),
pub pw1: GaLin<'a>,
pub pw2: GaLin<'a>,
pub out: GaLin<'a>,
}Expand description
The convolutional front end before the stacks, for
gigaam_encode_feats: three 3×3 convolutions over [channel][frame][mel]
(conv[i] = weight [co][ci][3][3], bias, co) — the first with two
zero frames before the first and one zero bin on both sides, the other two
at stride 2 with one zero frame on both sides and no padding in
frequency — each followed by SiLU; a ConvNeXt block (dw: a depthwise
3×3 padded like the first convolution, then pw1, SiLU, pw2 over the
channels, added to its input); and out over each frame’s
[channel][bin] values laid flat.
Fields§
§n_mel: usize§conv: [(&'a [f32], &'a [f32], usize); 3]§dw: (&'a [f32], &'a [f32])§pw1: GaLin<'a>§pw2: GaLin<'a>§out: GaLin<'a>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GaFront<'a>
impl<'a> !UnwindSafe for GaFront<'a>
impl<'a> Forget for GaFront<'a>
impl<'a> Freeze for GaFront<'a>
impl<'a> Move for GaFront<'a>
impl<'a> Send for GaFront<'a>
impl<'a> Sync for GaFront<'a>
impl<'a> Unpin for GaFront<'a>
impl<'a> UnsafeUnpin for GaFront<'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