pub struct Linear {
pub ws: Tensor,
pub bs: Option<Tensor>,
}
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§
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