SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
757 stars 271 forks source link

force cpu tensor #5

Closed blackyang closed 7 years ago

blackyang commented 7 years ago

If have torch.set_default_tensor_type('torch.cuda.FloatTensor') somewhere else, there will be a data type mismatch error (which too me a lot of time to debug lol). Now force costs to be a cpu tensor.

SeanNaren commented 7 years ago

thanks!