torch.cuda.floatTensor type and torch.floatTensor
i have encountered the following error: (float value)
didn’t match because some of the arguments have invalid types: (torch.cuda.FloatTensor) (torch.FloatTensor other)
didn’t match because some of the arguments have invalid types: (torch.cuda.FloatTensor) (float value, torch.FloatTensor other)
Shiyu
Could you try: <SCODE>gradient = torch.ge(inputs.grad.data, 0.0)
<ECODE>
smth
Problem solved, thanks. Here is another problem, how do convert a torch.cuda.floatTensor type tensor to a torch.floatTensor. Thanks.
Shiyu
fmassa
Thanks a lot!!!
Shiyu