Method concat
static member concat: int -> seq<Tensor<'T>> -> Tensor<'T>
Concatenates tensors along an axis.
Declaration
static member concat: ax:int -> ts:seq<Tensor<'T>> -> Tensor<'T>
Parameters
Type | Name | Description |
---|---|---|
int | ax | The concatenation axis. |
seq<Tensor<'T>> | ts | Sequence of tensors to concatenate. |
Returns
Type | Description |
---|---|
Tensor<'T> | The concatenated tensor. |
Remarks
The contents of a the tensors are concatenated in the specifed dimension.
The sizes of the tensors in all other dimensions must be equal.
Examples
let a = HostTensor.zeros [4L; 28L]
let b = HostTensor.zeros [4L; 15L]
let c = HostTensor.zeros [4L; 10L]
let d = Tensor.concat 1 [a; b; c] // d.Shape = [4L; 53L]