FunctionRacerProblemsRace

The Last Column

BeginnerPyTorchPython

Return the last column of the 2-D tensor x, as a 1-D tensor.

Example 1

x [[1.0,2.0,3.0],[4.0,5.0,6.0]]
returns [3.0,6.0]

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More PyTorch problems