Expand description
A linear fully-connected layer.
Fields
ws: Tensor
bs: Option<Tensor>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Linear
impl Send for Linear
impl !Sync for Linear
impl Unpin for Linear
impl UnwindSafe for Linear
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more