pub struct Lin {
pub out: usize,
pub inp: usize,
pub qw: QT,
pub qb: QT,
pub fw: u32,
pub w: Vec<i32>,
pub b: Vec<i32>,
}Expand description
One linear layer out × inp (w[o·inp + i]), fixed point.
Fields§
§out: usizeOutputs.
inp: usizeInputs.
qw: QTSource weights / biases.
qb: QTBiases.
fw: u32Weight fractional bits.
w: Vec<i32>Weights Q(fw).
b: Vec<i32>Biases Q(qa + fw).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lin
impl RefUnwindSafe for Lin
impl Send for Lin
impl Sync for Lin
impl Unpin for Lin
impl UnsafeUnpin for Lin
impl UnwindSafe for Lin
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