Open anthokalel opened 6 years ago
Hi Antho
It seems like you need to check line 40 in your main.lua to begin with:
main.lua:40: in function "__init"
Then this part of the error:
dimension 1 out of range of 0D tensor
probably means the tensor being used has no dimensions/hasn't been created etc, so you'll need to look at your code. Torch is trying to find dimension 1 in a tensor with no actual dimensions, hence the out of range error.
Thanks
Stuart
--
Stuart Millar
PhD Deep Learning / Cyber Security Researcher
CSIT / QUB, Belfast
smillar09@qub.ac.uk
https://www.linkedin.com/in/stuartmillar
From: anthokalel notifications@github.com Sent: 08 June 2018 12:10 To: torch/torch7 Cc: Subscribed Subject: [torch/torch7] dimension 1 out of range 0D tensor (#1156)
Hi,
I have a problem when I do the command
th main.lua -data_file train.hdf5 -val_data_file train-val.hdf5
I have the error :
`/home/anthony/torch/install/bin/luajit: main.lua:40: bad argument #1https://github.com/torch/torch7/pull/1 to 'size' (dimension 1 out of range of 0D tensor at /tmp/luarockstorch-scm-1-5751/torch7/generic/Tensor.c:19) stack traceback: [C]: in function 'size' main.lua:40: in function "__init" etc.
PLease help me. `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/torch/torch7/issues/1156, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQFdsPjctvuWIu4ekA-7LBgiwgW-zY8Qks5t6luigaJpZM4Uf7u3.
Thank you for the answer. I'll check.
Hi,
I have a problem when I do the command
th main.lua -data_file train.hdf5 -val_data_file train-val.hdf5
I have the error :
/home/anthony/torch/install/bin/luajit: main.lua:40: bad argument #1 to 'size' (dimension 1 out of range of 0D tensor at /tmp/luarocks_torch_-scm-1-5751/torch7/generic/Tensor.c:19) stack traceback: [C]: in function 'size' main.lua:40: in function "__init"
etc.PLease help me. `