word-rnn
word-rnn copied to clipboard
respect -opencl argument and use proper torch.*Tensor()
Hey, this is the first line of Lua I've ever written, not sure style is correct but wanted to keep it concise.
This makes the library compatible with opencl by using the proper tensor function depending on the existence of the -opencl 1
argument.