A Table of Zeros
Return a tensor of zeros with rows rows and cols columns.
Example 1
rows 2
cols 3
returns [[0.0,0.0,0.0],[0.0,0.0,0.0]]
Constraints
1 <= rows, cols <= 7
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More PyTorch problems
- Add Them UpBeginner
- Biggest and WhereBeginner
- Column AveragesBeginner
- Count UpBeginner
- Dot ProductBeginner
- HalvesBeginner
- The Last ColumnBeginner
- The ShapeBeginner