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:
authorSoumith Chintala <soumith@gmail.com>2015-11-17 23:03:40 +0300
committerSoumith Chintala <soumith@gmail.com>2015-11-17 23:03:40 +0300
commit0aff06c7b3ba291c86fd9e861258e56397885be5 (patch)
tree251e4cdff16cb09e1667f1ce4fca5c5eb63f61ff
parent5ef7de14ec324c5611d4fc8a61841845aacf344b (diff)
parent516831dc3907b1e2195a693ea747e58396ed7759 (diff)
Merge pull request #44 from clementfarabet/master
Enable heap tracking by default.
-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