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

bug for CudaLongTensor conversion #13

Open
congling opened this issue Sep 19, 2016 · 1 comment
Open

bug for CudaLongTensor conversion #13

congling opened this issue Sep 19, 2016 · 1 comment

Comments

@congling
Copy link

Hi,
I've tried your sample. But I found that the code has some issues for tensor conversion
When it runs to these two lines, th will report 'invalid arguments CudaLongTensor CudaTensor'
lloss = lloss + YYb:eq(Yb):sum()
lloss = lloss + YYb:eq(Yb):sum(2):eq(5):sum()
I changed it into the following to make it work
lloss = lloss + YYb:long():eq(Yb:long()):sum()
lloss = lloss + YYb:long():eq(Yb:long()):sum(2):eq(5):sum()

Btw, the training for 10K samples are very slow in my GTX 1080. Do I need to set something else?
Thanks

train .. 0.011111111111111
loss..250.91162276268
valid .. 3.38
train .. 6.5777777777778
valid .. 0
train .. 0.044444444444444
loss..248.19494605064
valid .. 3.98
train .. 8.1777777777778
valid .. 0
train .. 0.21111111111111

@congling
Copy link
Author

BTW, I was using 'java -cp simplecaptcha-1.2.1.jar:. Main' to generate 10K samples in data/simpleRNN/ folder

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

1 participant