sequence.concat_from_sequence
fn concat_from_sequence(sequence: Array<Tensor<T>>, axis: i32, new_axis: Option<usize>) -> Tensor<T>;Concatenate a sequence of tensors into a single tensor.
Args
sequence(Array<Tensor<T>>) - The input sequence.axis(i32) - Axis to concat on.new_axis(Option<usize>) - Optionally added new axis.
Panics
Panics if new_axis not 0 or 1 (if value provided).
Panics if axis not in accepted ranges.
Panics if sequence length is not greater than 1.
Returns
A new Tensor<T> concatenated tensor from the input tensor sequence.
Example
Last updated