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

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2015-04-29 02:00:56 +0300
committerSam Gross <colesbury@gmail.com>2015-05-29 21:54:38 +0300
commit18fb209ffdf1e42a73a745617bcbf76f0a6136c3 (patch)
tree39ca94dc1e7fd1fa0a89eb9f8dcb0fd3aa2d3e09 /init.lua
parent8a7dc48c11cb4ae54d8b88b6098041e0917e5d26 (diff)
Add support for Lua 5.2
Includes aliases to functions deprecated in Lua 5.2, such as math.log10 and unpack, and loadstring
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 9480b77..76e08d0 100644
--- a/init.lua
+++ b/init.lua
@@ -6,6 +6,9 @@
if not string.gfind then
string.gfind = string.gmatch
end
+if not table.unpack then
+ table.unpack = unpack
+end
require "paths"
paths.require "libtorch"