Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.lua:90: attempt to index field 'tableoutput' (a nil value) #20

Open
mxtx0509 opened this issue May 11, 2018 · 3 comments
Open

.lua:90: attempt to index field 'tableoutput' (a nil value) #20

mxtx0509 opened this issue May 11, 2018 · 3 comments

Comments

@mxtx0509
Copy link

I am so sorry,my issues is that
/home/mz/torch/install/bin/luajit: /home/mz/torch/install/share/lua/5.1/rnn/Sequencer.lua:90: attempt to index field 'tableoutput' (a nil value)
stack traceback:
/home/mz/torch/install/share/lua/5.1/rnn/Sequencer.lua:90: in function 'forward'
./net/rnntrain.lua:28: in function 'batchEval'
./net/train.lua:24: in function 'epochEval'
./net/train.lua:46: in function 'train'
net/main.lua:45: in main chunk
[C]: in function 'dofile'
...e/mz/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x004065d0

I think I don't have the true input ,but i don't know how to do ?could you tell me? the code is as same as provide. @simonwsw @graulef

@mxtx0509
Copy link
Author

mxtx0509 commented May 14, 2018

when I try to slove the problem I fond that update the rnn could solve the problem .but when I update the rnn ,there is another question . The question is that

/home/mz/torch/install/bin/luajit: /home/mz/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class <nn.LinearNoBias>
stack traceback:
[C]: in function 'error'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:343: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/nn/Module.lua:192: in function 'read'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:369: in function 'readObject'
...
/home/mz/torch/install/share/lua/5.1/torch/File.lua:351: in function 'readObject'
/home/mz/torch/install/share/lua/5.1/torch/File.lua:409: in function 'load'
./net/net.lua:21: in function 'loadNet'
./net/rnntrain.lua:22: in function '__init'
/home/mz/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/mz/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'RnnTrain'
net/main.lua:40: in main chunk
[C]: in function 'dofile'
...e/mz/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x004065d0
when I try to solve the question I find it need to rollback to a oldder. I guess my version of rnn is mistake .so could you tell me the rnn version of you .If I am wrong could you tell me the reason and the solution
@simonwsw @graulef

@Acciwu
Copy link

Acciwu commented Jul 7, 2022

I am reproducing the code of [deep-soli radar], the same problem you encountered, if rnn uses version [torch/rnn] and appears [attempt to call field 'Recurrent' (a nil value)], replace it with [ Element-Research/rnn] has the same problem as you [rnn/Sequencer.lua:90: attempt to index field 'tableoutput' (a nil value) ]

Did you solve this problem please?

@M12DL
Copy link

M12DL commented Oct 1, 2022

@Acciwu see this,#7 (comment) you will meet "invalid arguments: CudaTensor CudaTensor number",see this #5 (comment) everything is ok

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

No branches or pull requests

3 participants