Skip to content

Commit

Permalink
Merge pull request #31 from ZedRover/main
Browse files Browse the repository at this point in the history
replace finish with close
  • Loading branch information
avik-pal authored Mar 23, 2024
2 parents 1c76c18 + 7d1c794 commit bfcf49e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/WandbFluxTrainingExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Base.close(wa::Wandb.WandbBackend, args...; kwargs...)
return close(wa.logger, args...; kwargs...)
end

for func in (:log, :update_config!, :finish, :save, :get_config)
for func in (:log, :update_config!, :close, :save, :get_config)
@eval begin
function Wandb.$(func)(wa::Wandb.WandbBackend, args...; kwargs...)
return Wandb.$(func)(wa.logger, args...; kwargs...)
Expand Down
2 changes: 1 addition & 1 deletion ext/WandbMPIExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ for func in (:log, :close)
end
end

for func in (:increment_step!, :finish, :save)
for func in (:increment_step!, :close, :save)
@eval begin
function Wandb.$(func)(wa::WandbLoggerMPI, args...; kwargs...)
return Wandb.$(func)(wa.logger, args...; kwargs...)
Expand Down
2 changes: 1 addition & 1 deletion src/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end
Terminate the current run. For more details checkout `wandb.finish` (or
`? Wandb.wandb.finish` in the Julia REPL).
"""
Base.close(lg::WandbLogger; kwargs...) = lg.wrun.finish(; kwargs...)
Base.close(lg::WandbLogger; kwargs...) = lg.wrun.close(; kwargs...)

"""
save(lg::WandbLogger, args...; kwargs...)
Expand Down

0 comments on commit bfcf49e

Please sign in to comment.