pub struct Linear<T: Num, D: Device> {
pub weight: Variable<T, D>,
pub bias: Option<Variable<T, D>>,
/* private fields */
}
Fields§
§weight: Variable<T, D>
§bias: Option<Variable<T, D>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, D> Freeze for Linear<T, D>
impl<T, D> !RefUnwindSafe for Linear<T, D>
impl<T, D> !Send for Linear<T, D>
impl<T, D> !Sync for Linear<T, D>
impl<T, D> Unpin for Linear<T, D>
impl<T, D> !UnwindSafe for Linear<T, D>
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