Created
August 3, 2022 20:29
-
-
Save Steboss89/38c3f4217e79d35b3dd5d4d017f2fbae to your computer and use it in GitHub Desktop.
Start defining the default for a Linear NN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct LinearConfig { | |
| pub ws_init: super::Init, | |
| pub bs_init: Option<super::Init>, | |
| pub bias: bool, | |
| } | |
| impl Default for LinearConfig { | |
| fn default() -> Self { | |
| LinearConfig { ws_init: super::Init::KaimingUniform, bs_init: None, bias: true } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment