hi there.
In this particular case, thanks for your feedback. We will improve our onboarding process, by making more newbie friendly tutorials.
In this case, x = np.random.random(10) returns a numpy ndarray of dtype=float64.
When you call ipt = torch.from_numpy(x), ipt is now a torch.DoubleTensor.
However, your model is expecting a torch.FloatTensor, so you simply do:
ipt = torch.from_numpy(x)
ipt = ipt.float()

That’s all