pub struct GaLin<'a> {
pub rows: usize,
pub cols: usize,
pub weight: &'a dyn GaWeight,
pub bias: &'a [f32],
}Expand description
One product of the GigaAM encoder for gigaam_encode:
y[n, rows] = x[n, cols]·Wᵀ + bias.
Fields§
§rows: usize§cols: usize§weight: &'a dyn GaWeight§bias: &'a [f32][rows], or empty: no bias
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GaLin<'a>
impl<'a> !UnwindSafe for GaLin<'a>
impl<'a> Forget for GaLin<'a>
impl<'a> Freeze for GaLin<'a>
impl<'a> Move for GaLin<'a>
impl<'a> Send for GaLin<'a>
impl<'a> Sync for GaLin<'a>
impl<'a> Unpin for GaLin<'a>
impl<'a> UnsafeUnpin for GaLin<'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