init(_:alongAxis:)
Creates a tensor by stacking the given tensors along the specified axis.
Declaration
init(_ elements: some Collection<MLTensor>, alongAxis axis: Int = 0)Parameters
- axis:
The axis along which to stack. Negative values wrap around.
See Also
Creating a tensor
init(_:)init(_:scalarType:)init(bytesNoCopy:shape:scalarType:deallocator:)init(concatenating:alongAxis:)init(linearSpaceFrom:through:count:)init(linearSpaceFrom:through:count:scalarType:)init(ones:scalarType:)init(randomNormal:mean:standardDeviation:seed:scalarType:)init(randomUniform:in:seed:scalarType:)init(rangeFrom:to:by:)init(rangeFrom:to:by:scalarType:)init(repeating:shape:)init(repeating:shape:scalarType:)init(shape:data:scalarType:)init(shape:scalars:)