Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Sep 11, 2023
1 parent 3d14724 commit 675cf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-optim-lr_scheduler.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ test_that("state dict works", {
o$load_state_dict(opt_dict)
expect_equal(o$param_groups[[1]]$lr, 0.1)

scheduler <- lr_step(optimizer = o, step_size = 0.1)
scheduler <- lr_step(optimizer = o, step_size = 0.2) # use a different value
scheduler$load_state_dict(dict)

scheduler$step()
Expand Down

0 comments on commit 675cf31

Please sign in to comment.