Skip to content

Commit

Permalink
tweak ETA to rate
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Aug 31, 2023
1 parent 4812a4a commit f7e160f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ Collate:
'reexports.R'
'serialization.R'
Remotes:
mlverse/torch
mlverse/torch
2 changes: 1 addition & 1 deletion R/callbacks.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ luz_callback_progress <- luz_callback(
# Specially for testing purposes we don't want to have the
# progress bar showing the ETA.
if (getOption("luz.show_progress_bar_eta", TRUE)) {
if (!is.na(format)) {
if (!is.na(total)) {
format <- paste0(format, " - ETA: :eta")
} else {
format <- paste0(format, " - Rate: :tick_rate iter/s")
Expand Down

0 comments on commit f7e160f

Please sign in to comment.