PyTorch Basics

Create a Tensor

① Learn

A tensor is PyTorch's main data object. It is like a powerful array that works well with deep learning operations.

② Implement — write it, run it, submit
Goal

Import PyTorch and make `x` a tensor from `[1.0, 2.0, 3.0]`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators