concatenated(with:alongAxis:)
Returns a concatenated tensor along the specified axis.
Declaration
func concatenated(with other: MLTensor, alongAxis axis: Int = 0) -> MLTensorParameters
- other:
The tensor to concatenate. The tensors must have the same dimensions, except for the specified axis.
- axis:
The axis along which to concatenate. Negative values wrap around but must be in the range
[-rank, rank).