pub struct Model {
pub layers: Vec<Layer>,
pub name: String,
}Expand description
A sequential neural network model.
Fields§
§layers: Vec<Layer>§name: StringImplementations§
Source§impl Model
impl Model
pub fn new(name: &str) -> Self
pub fn forward(&self, input: &Tensor) -> Tensor
pub fn parameter_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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