pub struct SequentialLayersStorage { /* private fields */ }Implementations§
Source§impl SequentialLayersStorage
impl SequentialLayersStorage
pub fn empty() -> Self
Sourcepub fn new_simple_network(layers: &Vec<usize>) -> Self
pub fn new_simple_network(layers: &Vec<usize>) -> Self
Setup the network with [0] - input size, […] - hidden neurons, [N] - output size
pub fn fit_to_batch_size(&mut self, batch_size: usize)
pub fn prepare_for_tests(&mut self, batch_size: usize)
pub fn iter_mut(&mut self) -> IterMut<'_, Box<dyn AbstractLayer>>
pub fn iter(&self) -> Iter<'_, Box<dyn AbstractLayer>>
pub fn add_layer(&mut self, l: Box<dyn AbstractLayer>)
pub fn len(&self) -> usize
pub fn at_mut(&mut self, id: usize) -> &mut Box<dyn AbstractLayer>
pub fn at(&self, id: usize) -> &Box<dyn AbstractLayer>
pub fn first(&self) -> Option<&Box<dyn AbstractLayer>>
pub fn first_mut(&mut self) -> Option<&mut Box<dyn AbstractLayer>>
pub fn last(&self) -> Option<&Box<dyn AbstractLayer>>
pub fn last_mut(&mut self) -> Option<&mut Box<dyn AbstractLayer>>
Trait Implementations§
Source§impl Clone for SequentialLayersStorage
impl Clone for SequentialLayersStorage
Source§impl Default for SequentialLayersStorage
impl Default for SequentialLayersStorage
Source§fn default() -> SequentialLayersStorage
fn default() -> SequentialLayersStorage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SequentialLayersStorage
impl<'de> Deserialize<'de> for SequentialLayersStorage
Source§fn deserialize<D>(deserializer: D) -> Result<SequentialLayersStorage, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<SequentialLayersStorage, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SequentialLayersStorage
impl Display for SequentialLayersStorage
Auto Trait Implementations§
impl Freeze for SequentialLayersStorage
impl !RefUnwindSafe for SequentialLayersStorage
impl !Send for SequentialLayersStorage
impl !Sync for SequentialLayersStorage
impl Unpin for SequentialLayersStorage
impl !UnwindSafe for SequentialLayersStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more