X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=dagnn.git;a=blobdiff_plain;f=test-dagnn.lua;h=32eed5724f5ea84c8e55fe966b54e53021013902;hp=0c9fe6d57376b8be5a3d2621677e1bd667f429a9;hb=34ed0d49d9b6b03811cd92c9513edf4ec5d4d2d2;hpb=941ae69a9ccf274e3bff8b1fa45da04fb825a647 diff --git a/test-dagnn.lua b/test-dagnn.lua index 0c9fe6d..32eed57 100755 --- a/test-dagnn.lua +++ b/test-dagnn.lua @@ -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)