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:
authorSoumith Chintala <soumith@gmail.com>2016-08-08 18:47:05 +0300
committerGitHub <noreply@github.com>2016-08-08 18:47:05 +0300
commit6c59c359d199417e1cf1b65b42d2d614713e4749 (patch)
treeb6fc8f4cdb8060488a32a886f5bf697e71fb2390
parent540354b84b1f71f65a9dd9fe3e2093979b627c5e (diff)
parenta4b745e95e88e9b741d25f8a82a6fb4742113a7f (diff)
Merge pull request #124 from Atcold/patch-1
One-line Logger initialisation
-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)