@@ -66,7 +66,7 @@ function TBLogger(logdir="tensorboard_logs/run", overwrite=tb_increment;
6666end
6767
6868"""
69- init_logdir(logdir, [overwrite=tb_increment])
69+ init_logdir(logdir, [overwrite=tb_increment])
7070
7171Creates a folder at path `logdir`. If the folder already exhists the behaviour
7272is determined by `overwrite`.
@@ -99,7 +99,7 @@ function init_logdir(logdir, overwrite=tb_increment)
9999end
100100
101101"""
102- create_eventfile(logdir, [purge_step=nothing; time=time()]) -> IO
102+ create_eventfile(logdir, [purge_step=nothing; time=time()]) -> IO
103103
104104Creates a protobuffer events file in the logdir and returns the IO buffer for
105105writing to it. If `purge_step::Int` is passed then a special event is written
@@ -129,7 +129,7 @@ function create_eventfile(logdir, purge_step=nothing, time=time(); prepend="")
129129 ev_0 = Event (time, 0 , OneOf (:file_version ," brain.Event:2" ), source_metadata[])
130130 write_event (file, ev_0)
131131 end
132- return fname, file
132+ return fname, file
133133end
134134
135135"""
@@ -193,7 +193,7 @@ Can be overidden by passing `log_step_increment=some_increment` when logging.
193193set_step_increment! (lg:: TBLogger , Δstep) = lg. step_increment = Δstep
194194
195195"""
196- increment_step!(lg, Δ_Step) -> Int
196+ increment_step!(lg, Δ_Step) -> Int
197197
198198Increments the step counter in the logger by `Δ_Step` and returns the new value.
199199"""
@@ -253,7 +253,7 @@ CoreLogging.min_enabled_level(lg::TBLogger) = lg.min_level
253253CoreLogging. shouldlog (lg:: TBLogger , level, _module, group, id) = true
254254
255255function CoreLogging. handle_message (lg:: TBLogger , level, message, _module, group,
256- id, file, line; kwargs... )
256+ id, file, line; kwargs... )
257257 # Unpack the message
258258 summ = SummaryCollection ()
259259 i_step = lg. step_increment # :log_step_increment default value
@@ -283,18 +283,18 @@ end
283283
284284# ######################## Methods for pretty printing ##########################
285285Base. show (io:: IO , tbl:: TBLogger ) = begin
286- str = " TBLogger(\" $(tbl. logdir) \" ), min_level=$(tbl. min_level) , " *
287- " purge_step=$(tbl. global_step) )"
286+ str = " TBLogger(\" $(tbl. logdir) \" ), min_level=$(tbl. min_level) , " *
287+ " purge_step=$(tbl. global_step) )"
288288 Base. print (io, str)
289289end
290290
291291Base. show (io:: IO , mime:: MIME"text/plain" , tbl:: TBLogger ) = begin
292- str = """
293- TBLogger:
294- - Log level : $(tbl. min_level)
295- - Current step : $(tbl. global_step)
296- - Output : $(tbl. logdir)
297- - open files : $(length (tbl. all_files))
298- """
292+ str = """
293+ TBLogger:
294+ - Log level : $(tbl. min_level)
295+ - Current step : $(tbl. global_step)
296+ - Output : $(tbl. logdir)
297+ - open files : $(length (tbl. all_files))
298+ """
299299 Base. print (io, str)
300300end
0 commit comments