End to End
Return the 1-D tensors a and b joined into one: the elements of a, then the elements of b.
Example 1
a [1.0,2.0]
b [3.0]
returns [1.0,2.0,3.0]
Constraints
- Each has 0 to 6 elements
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More PyTorch problems
- Floor at ZeroEasy
- Matrix Times MatrixEasy
- One HotEasy
- Only the PositivesEasy
- Rows That Sum to OneEasy
- Stack the RowsEasy
- The First GradientEasy
- The k LargestEasy