torch / nngraph

Graph Computation for nn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minus '-' syntax not working

dno89 opened this issue · comments

Trying to execute the example with the '-' syntax presented in https://github.com/torch/nngraph#more-fun-with-graphs results in:
nn.Identity has no negation operator

Replacing input = - nn.Identity() with input = nn.Identity()() then leads to:
both nngraph.Node and nn.Linear have no substraction operator

did you update your nngraph package?
luarocks install nngraph

Apparently I had an older version.
Thank you very much.