Struct burn::nn::LinearConfig
source · [−]Expand description
Configuration to create a Linear layer.
Fields
d_input: usize
The size of the input features.
d_output: usize
The size of the output features.
bias: bool
If a bias should be applied during the linear transformation.
Implementations
sourceimpl LinearConfig
impl LinearConfig
Trait Implementations
sourceimpl Clone for LinearConfig
impl Clone for LinearConfig
sourceimpl Config for LinearConfig
impl Config for LinearConfig
sourceimpl<'de> Deserialize<'de> for LinearConfig
impl<'de> Deserialize<'de> for LinearConfig
sourcefn 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
sourceimpl Display for LinearConfig
impl Display for LinearConfig
sourceimpl Serialize for LinearConfig
impl Serialize for LinearConfig
Auto Trait Implementations
impl RefUnwindSafe for LinearConfig
impl Send for LinearConfig
impl Sync for LinearConfig
impl Unpin for LinearConfig
impl UnwindSafe for LinearConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more