Model Pipeline - First PyTorch computation
This pipeline shows how PyTorch performs a simple computation: adding two tensors. It starts with input tensors, adds them, and produces the output tensor.
This pipeline shows how PyTorch performs a simple computation: adding two tensors. It starts with input tensors, adds them, and produces the output tensor.
No training loss to show for this computation
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | N/A | N/A | No training, just a simple computation |
import torch x = torch.tensor([2, 4]) y = torch.tensor([3, 1]) z = x + y print(z)
import torch x = torch.tensor([1, 2, 3]) y = torch.tensor([4, 5]) z = x + y print(z)
import torch x = torch.tensor([1, 2, 3]) y = torch.tensor([4, 5, 6]) # Choose the correct next line
Pass the test and this pattern moves unknown