ArrayLab Explore arrays. Understand tensors.
a =
a =
Run the PyTorch side in Colab

NumPy runs here for real; PyTorch does not run in the browser. PyTorch code is shown next to it, and every PyTorch result stated here (dtypes, errors) was recorded with PyTorch 2.14.0.

Starting Python… (first visit downloads ≈ 15 MB, then it is cached)

Pick a creation function to see the tensor it makes.

Python not started
import numpy as np

a = np.zeros((2, 3))

a
Output

Output appears here.