Column Averages
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
- 1 to 5 rows, 1 to 5 columns
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More PyTorch problems
- Count UpBeginner
- Dot ProductBeginner
- HalvesBeginner
- The Last ColumnBeginner
- The ShapeBeginner
- Twice Plus OneBeginner
- Two RowsBeginner
- A Layer by HandEasy