FunctionRacerProblemsRace

Column Averages

BeginnerPyTorchPython

Return the mean of each column of the 2-D tensor x: a 1-D tensor with one number per column.

Example 1

x [[1.0,10.0],[3.0,20.0]]
returns [2.0,15.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