You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It reports "expected scalar type Double but found Float" with torch.mm in chapter 3.2.1.
Fixed by add "to (torch.float32)" as bellow: features = torch.from_numpy(np.random.normal(0, 1, (num_examples, num_inputs))).to(torch.float32)
The text was updated successfully, but these errors were encountered:
It reports "expected scalar type Double but found Float" with torch.mm in chapter 3.2.1.
Fixed by add "to (torch.float32)" as bellow:
features = torch.from_numpy(np.random.normal(0, 1, (num_examples, num_inputs))).to(torch.float32)
The text was updated successfully, but these errors were encountered: