pub struct Layer<W: BinRead<Args = ()> + Debug, B: BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> { /* private fields */ }Implementations§
source§impl<W: BinRead<Args = ()> + Debug, B: BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W: BinRead<Args = ()> + Debug, B: BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
pub fn get_weights_transpose(&self) -> &[MathVec<W, NUM_INPUTS>; NUM_OUTPUTS]
pub fn get_biases(&self) -> &MathVec<B, NUM_OUTPUTS>
Trait Implementations§
source§impl<W: BinRead<Args = ()> + Debug, B: BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> BinRead for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W: BinRead<Args = ()> + Debug, B: BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> BinRead for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
§type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
source§fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: Self::Args, ) -> BinResult<Self>
Read the type from the reader
source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read the type from the reader while assuming no arguments have been passed Read more
source§fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
Read the type from the reader using the specified arguments
fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args, ) -> Result<(), Error>
source§impl<W: Clone + BinRead<Args = ()> + Debug, B: Clone + BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Clone for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W: Clone + BinRead<Args = ()> + Debug, B: Clone + BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Clone for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
source§impl<W: Debug + BinRead<Args = ()> + Debug, B: Debug + BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Debug for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W: Debug + BinRead<Args = ()> + Debug, B: Debug + BinRead<Args = ()>, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Debug for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
source§impl<'de, W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Deserialize<'de> for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<'de, W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Deserialize<'de> for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Freeze for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> RefUnwindSafe for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>where
B: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Send for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Sync for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> Unpin for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>
impl<W, B, const NUM_INPUTS: usize, const NUM_OUTPUTS: usize> UnwindSafe for Layer<W, B, NUM_INPUTS, NUM_OUTPUTS>where
B: UnwindSafe,
W: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
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