Skip to content
fn

vstack_op

→TensorImplPtr
int vstack_op(const int & xs)

Python wrappers

Public Python APIs implemented by this engine symbol.

Vertically stack a sequence of tensors.

Equivalent to NumPy vstack: 1-D inputs of length N are promoted to row vectors and stacked into a 2-D tensor of shape (len(xs), N); inputs with rank >= 2 are concatenated along axis 0.

See Also

hstack_op, stack_op.

Parameters

xsvector<TensorImplPtr>
Non-empty list of tensors. For rank >= 2, every dim except axis 0 must agree; for 1-D inputs, lengths must agree.

Returns

TensorImplPtr

Vertically stacked tensor with rank max(2, input_rank).