Wow, seems to work (!)
[dagnn.git] / test-dagnn.lua
index 0c9fe6d..32eed57 100755 (executable)
@@ -42,14 +42,14 @@ g:addEdge(b, c)
 g:addEdge(b, d)
 g:addEdge(d, f)
 
-g:setInput({ a })
+g:setInput({{a}})
 g:setOutput({ e, f })
 
 g:print()
 
 input = torch.Tensor(3, 10):uniform()
 
-output = g:updateOutput({ input })
+output = g:updateOutput({{ input }})
 
 printTensorTable(output)