From 5a1b9c88b338b09fec3649205f4f0fb63921db8e Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Fri, 9 Dec 2016 20:07:08 -0500 Subject: [PATCH] Update init.lua In order to use cunn in terra we must not have 'undeclared' variables. Note the cunn table is initialized by: ```cunn = cunn or {} ``` ... in test.lua --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f149a1b9..fd1e319b 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,5 @@ +cunn = nil + require "cutorch" require "nn" require "cunn.THCUNN"