pub struct MlAiCache<const OUT: usize, const MIDDLE: usize, const IN: usize> { /* private fields */ }Expand description
Cache for ChobitMlAi.
OUT:OUTofChobitMlAi.MIDDLE:MIDDLEofChobitMlAi.IN:INofChobitMlAi.
Implementations§
Source§impl<const OUT: usize, const MIDDLE: usize, const IN: usize> MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> MlAiCache<OUT, MIDDLE, IN>
Sourcepub fn calc_output_error(
&self,
train_out: &MathVec<OUT>,
error: &mut MathVec<OUT>,
)
pub fn calc_output_error( &self, train_out: &MathVec<OUT>, error: &mut MathVec<OUT>, )
Calculates output error.
| Formula |
|---|
train_out: Correct output.output_error: Buffer for output error.
Sourcepub fn middle_cache(&self) -> &MlCache<MIDDLE, IN>
pub fn middle_cache(&self) -> &MlCache<MIDDLE, IN>
Gets cache for middle layer.
- Return : Cache for middle layer.
Sourcepub fn output_cache(&self) -> &MlCache<OUT, MIDDLE>
pub fn output_cache(&self) -> &MlCache<OUT, MIDDLE>
Gets cache for output layer.
- Return : Cache for output layer.
Trait Implementations§
Source§impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Clone for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Clone for MlAiCache<OUT, MIDDLE, IN>
Source§impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Debug for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Debug for MlAiCache<OUT, MIDDLE, IN>
Source§impl<const OUT: usize, const MIDDLE: usize, const IN: usize> PartialEq for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> PartialEq for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> StructuralPartialEq for MlAiCache<OUT, MIDDLE, IN>
Auto Trait Implementations§
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Freeze for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> RefUnwindSafe for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Send for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Sync for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> Unpin for MlAiCache<OUT, MIDDLE, IN>
impl<const OUT: usize, const MIDDLE: usize, const IN: usize> UnwindSafe for MlAiCache<OUT, MIDDLE, IN>
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