PyTorchStepByStep
PyTorchStepByStep copied to clipboard
A code mistake in the book
There is a mistake on page 113 of the book.
# on page 113
predictions = torch.tensor(0.5, 1.0)
labels = torch.tensor(2.0, 1.3)
Probably what you really want to write is
predictions = torch.tensor([0.5, 1.0])
labels = torch.tensor([2.0, 1.3])
Thank you Neuer