how to solve this error?
Use .float()
to convert your tensor array to Float.
That pretty much fixes the error
x = Variable(tensor.from_numpy(x).float())
3 Likes
how to solve this error?
Use .float()
to convert your tensor array to Float.
That pretty much fixes the error
x = Variable(tensor.from_numpy(x).float())