efficientdensenet_crnn icon indicating copy to clipboard operation
efficientdensenet_crnn copied to clipboard

expected FloatTensor but found cuda.FloatTensor

Open viig99 opened this issue 6 years ago • 3 comments

''' RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'source' '''

Got this error on line 407 of efficientdensenet_crnn/train/pytorch-train/models/efficient_densecrnn.py, can you please help ?

viig99 avatar Aug 16 '18 06:08 viig99

can you provide more details? did you use model.cuda()

phybrain avatar Aug 16 '18 09:08 phybrain

''' RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'source' '''

Got this error on line 407 of efficientdensenet_crnn/train/pytorch-train/models/efficient_densecrnn.py, can you please help ?

This code is based on pytorch=0.2.0,so the bug is appearance。So the author can modify the code so that it can run which the pytorch=0.4.0 or pytorch=0.4.1 ,Thanks

windowxiaoming avatar Nov 12 '18 03:11 windowxiaoming

''' RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'source' ''' Got this error on line 407 of efficientdensenet_crnn/train/pytorch-train/models/efficient_densecrnn.py, can you please help ?

This code is based on pytorch=0.2.0,so the bug is appearance。So the author can modify the code so that it can run which the pytorch=0.4.0 or pytorch=0.4.1 ,Thanks

I also met this problem, have you solved it??? can you help me???

wjw-2017 avatar Apr 26 '20 04:04 wjw-2017