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>2016-02-06 19:16:07 +0300
committerSoumith Chintala <soumith@gmail.com>2016-02-06 19:16:07 +0300
commitf2d2f1ad40d5dc695d75c4ef2edd36142d319e49 (patch)
tree88e5c0ff7e7551da9b4c2ef43c50b3301de3d96e
parent1ae1458706758122c1358193bd2945e31bddc62c (diff)
parentee99fc4446edbdfd7ca72853cec9154d760c5ecb (diff)
Merge pull request #47 from vsergeev/fix-running-torch-less
Fix running in torch-less env with stub for torch.setheaptracking()
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a043fe5..8255873 100644
--- a/init.lua
+++ b/init.lua
@@ -132,7 +132,8 @@ local selfhelp = [[
-- If no Torch:
if not torch then
torch = {
- typename = function() return '' end
+ typename = function() return '' end,
+ setheaptracking = function() end
}
end