Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolasvasilache authored Dec 10, 2016
1 parent 3e652e3 commit 5a1b9c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cunn = nil

require "cutorch"
require "nn"
require "cunn.THCUNN"
Expand Down

0 comments on commit 5a1b9c8

Please sign in to comment.