Skip to content

Commit

Permalink
Fix PrettyTables header argument; restrict compat to >=1. (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoh authored Oct 12, 2021
1 parent cc7137b commit 2610c29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ImageCore = "0.8, 0.9"
LightGraphs = "1.3"
OnlineStats = "1.5"
Parameters = "0.12"
PrettyTables = "0.10, 0.11, 0.12, 1"
PrettyTables = "1, 1.1, 1.2"
ProgressMeter = "1.4"
Reexport = "1.0"
TensorBoardLogger = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function print_epoch_table(mvhistory, epoch, phase)
header = vcat(["Phase", "Epoch"], string.(keys(mvhistory)))
vals = [last(mvhistory, key) |> last for key in keys(mvhistory)]
data = reshape(vcat([string(typeof(phase)), epoch], vals), 1, :)
pretty_table(data, header, formatters = PrettyTables.ft_round(5))
pretty_table(data; header = header, formatters = PrettyTables.ft_round(5))
end

stateaccess(::MetricsPrinter) = (; cbstate = (metricsepoch = Read(), history = Read()))
Expand Down
2 changes: 1 addition & 1 deletion src/callbacks/logging/logger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ end
function log_parameters(backends, x, name, epochs; group)
params = Flux.trainable(x)
if isempty(params) && x isa AbstractArray
log_to(
log_to(
backends,
Loggables.Histogram(vec(x)),
name,
Expand Down

0 comments on commit 2610c29

Please sign in to comment.