pub struct Linear<B: Backend> {
pub weight: Tensor<B>,
pub bias: Option<Tensor<B>>,
}
Expand description
Linear layer
Fields§
§weight: Tensor<B>
weight
bias: Option<Tensor<B>>
bias
Implementations§
Trait Implementations§
Source§impl<'a, B: Backend> IntoIterator for &'a Linear<B>
impl<'a, B: Backend> IntoIterator for &'a Linear<B>
Source§impl<'a, B: Backend> IntoIterator for &'a mut Linear<B>
impl<'a, B: Backend> IntoIterator for &'a mut Linear<B>
Auto Trait Implementations§
impl<B> Freeze for Linear<B>where
B: Freeze,
impl<B> RefUnwindSafe for Linear<B>where
B: RefUnwindSafe,
impl<B> Send for Linear<B>where
B: Send,
impl<B> Sync for Linear<B>where
B: Sync,
impl<B> Unpin for Linear<B>where
B: Unpin,
impl<B> UnwindSafe for Linear<B>where
B: UnwindSafe,
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