minus '-' syntax not working
dno89 opened this issue · comments
Daniele Molinari commented
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
Soumith Chintala commented
did you update your nngraph package?
luarocks install nngraph
Daniele Molinari commented
Apparently I had an older version.
Thank you very much.