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

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2012-01-30 19:54:41 +0400
committerRonan Collobert <ronan@collobert.com>2012-01-30 19:54:41 +0400
commite78f57d33895dde4f80de3228b3b899e31c8570b (patch)
treee283cd075a6f7d922783acb2604e618e288ffe2a
parent2a14c8223f3d6b8a1cd0760494536822e6a6e9a9 (diff)
Merge branch 'master' into newpack
Conflicts: extra/nn/test/test.lua
-rw-r--r--inline.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/inline.lua b/inline.lua
index f2f9ffb..76f6229 100644
--- a/inline.lua
+++ b/inline.lua
@@ -79,6 +79,7 @@ local function uncleanText(txt)
end
local function string2symbol(str)
+ local str = str:gsub(':','.')
local ok, res = pcall(loadstring('local t = ' .. str .. '; return t'))
if not ok then
ok, res = pcall(loadstring('local t = _torchimport.' .. str .. '; return t'))