pub struct Linear {
pub weights: FloatTensor,
pub biases: Option<FloatTensor>,
}Fields§
§weights: FloatTensor§biases: Option<FloatTensor>Implementations§
Source§impl Linear
impl Linear
pub fn forward(&self, x: FloatTensor) -> Result<FloatTensor>
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