4. 3×3 Matrix 0–8

Easy

Return a 3×3 tensor containing the values 0 through 8 in row-major order.

Output

tensor([[0, 1, 2],
        [3, 4, 5],
        [6, 7, 8]])

Sign in to write and run your own code.

Implement solve(...)