Skip to content

Commit

Permalink
link paper
Browse files Browse the repository at this point in the history
  • Loading branch information
leizaf authored Aug 29, 2023
1 parent e9919c4 commit 2e7c75e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion candle-nn/examples/lamb_optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub struct Lamb {
params: ParamsLamb,
}

// based on https://arxiv.org/pdf/1904.00962.pdf
impl Lamb {
pub fn new(vars: Vec<Var>, params: ParamsLamb) -> Result<Self> {
let vars = vars.into_iter().map(|var| {
Expand Down Expand Up @@ -161,4 +162,4 @@ fn test_clamp() -> Result<()> {
vec![2.0, 2.0, 3.0, 3.0]
);
Ok(())
}
}

0 comments on commit 2e7c75e

Please sign in to comment.