copapy.concat#

copapy.concat(tensors, axis=0)#
Overloads:
  • tensors (Sequence[vector[U]]) → vector[U]

  • tensors (Sequence[tensor[U]]), axis (int) → tensor[U]

Concatenate tensors or vectors along a specified axis.

Parameters:
  • tensors (Sequence[tensor[TypeVar(U, int, float)] | vector[TypeVar(U, int, float)]]) – Tensors or vectors to concatenate. Must have the same shape except for the specified axis.

  • axis (int) – Axis along which to concatenate (default 0).

Returns:

A new tensor or vector resulting from concatenation.