Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Failed to parse generated code when optimize=true #178

Open
farleylai opened this issue Jan 1, 2019 · 0 comments
Open

Failed to parse generated code when optimize=true #178

farleylai opened this issue Jan 1, 2019 · 0 comments

Comments

@farleylai
Copy link

I am working on implementing SSIM in Torch7 with autograd.
Everything works as expected.
However, when optimize is set to true, the following error is thrown:

[string "return function(locals, rlocals, vlocals, obj..."]:15: ')' expected near ','
/home/ml/farleylai/Downloads/pkg/torch/install/bin/luajit: ...re/lua/5.1/autograd/runtime/codegen/backend/lua/init.lua:775: failed to parse generated code.
stack traceback:
	[C]: in function 'error'
	...re/lua/5.1/autograd/runtime/codegen/backend/lua/init.lua:775: in function 'generateFn'
	.../install/share/lua/5.1/autograd/runtime/codegen/init.lua:140: in function 'fn'
	.../pkg/torch/install/share/lua/5.1/autograd/optim/init.lua:11: in function 'optim'
	demo-simple.lua:53: in main chunk
	[C]: in function 'dofile'
	.../pkg/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x00405d50

The sources are attached FYI:

Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant