Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/optim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Logger.lua')
-rw-r--r--Logger.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/Logger.lua b/Logger.lua
index 02421b9..48915ef 100644
--- a/Logger.lua
+++ b/Logger.lua
@@ -76,6 +76,7 @@ function Logger:setNames(names)
end
self.file:write('\n')
self.file:flush()
+ return self
end
function Logger:add(symbols)
@@ -120,6 +121,7 @@ function Logger:style(symbols)
xlua.error('style should be a string or a table of strings','Logger')
end
end
+ return self
end
function Logger:setlogscale(value)