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

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <cfarabet@twitter.com>2015-11-17 22:59:33 +0300
committerClement Farabet <cfarabet@twitter.com>2015-11-17 22:59:33 +0300
commit516831dc3907b1e2195a693ea747e58396ed7759 (patch)
tree251e4cdff16cb09e1667f1ce4fca5c5eb63f61ff
parent5ef7de14ec324c5611d4fc8a61841845aacf344b (diff)
Enable heap tracking by default.
-> this is proven enough, and eliminates the need for manual GC-ing.
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index ca4d41d..06e57e1 100644
--- a/init.lua
+++ b/init.lua
@@ -688,5 +688,8 @@ for k,v in pairs(_G) do
_G._preloaded_[k] = true
end
+-- Enable heap tracking
+torch.setheaptracking(true)
+
-- return repl, just call it to start it!
return repl