FunctionRacerProblemsRace

Two Rows

BeginnerPyTorchPython

x is a 1-D tensor with an even number of elements. Return them as a table with 2 rows, in the same order: the first half in the first row, the second half in the second.

Example 1

x [1.0,2.0,3.0,4.0,5.0,6.0]
returns [[1.0,2.0,3.0],[4.0,5.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