Skip to content

Commit

Permalink
also prefix with $
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Dec 11, 2023
1 parent 3b24703 commit c8a23d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/callbacks.R
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ luz_callback_lr_scheduler <- luz_callback(
lr_scheduler(optimizer, ...)
}
self[[call_on]] <- function() {
if ("metrics" %in% names(formals(scheduler$step))) {
if ("metrics" %in% names(formals(self$scheduler$step))) {
self$scheduler$step(current_loss)
} else {
self$scheduler$step()
Expand Down

0 comments on commit c8a23d7

Please sign in to comment.