pub struct Linear {
pub weight: Vec<Vec<f32>>,
pub bias: Option<Vec<f32>>,
pub in_features: usize,
pub out_features: usize,
}Expand description
Linear layer (fully connected)
Fields§
§weight: Vec<Vec<f32>>§bias: Option<Vec<f32>>§in_features: usize§out_features: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Linear
impl RefUnwindSafe for Linear
impl Send for Linear
impl Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
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