Add the AdamW optimizer. (#307)

* Add the AdamW optimizer.

* Add some AdamW test validated against PyTorch.
This commit is contained in:
Laurent Mazare
2023-08-02 14:03:49 +01:00
committed by GitHub
parent e2acbe1e72
commit 0902846f25
6 changed files with 216 additions and 19 deletions

View File

@ -19,5 +19,5 @@ pub use embedding::{embedding, Embedding};
pub use init::Init;
pub use layer_norm::{layer_norm, LayerNorm};
pub use linear::{linear, linear_no_bias, Linear};
pub use optim::SGD;
pub use optim::{AdamW, ParamsAdamW, SGD};
pub use var_builder::{VarBuilder, VarMap};