Skip to content
RED SAGSkills
medium10 pts · first answer countsdeep-learningpytorchdebugging

Double versus float error

Inputs come from a NumPy float64 array: x = torch.from_numpy(arr). model(x) fails with "expected scalar type Float but found Double". What is the fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions