# tensorplay.functional.dstack Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.dstack.html ```python tensorplay.functional.dstack(tensors, *, out=None) → Tensor ``` Stack tensors in sequence depthwise (along third axis). This is equivalent to concatenation along the third axis after 1-D and 2-D tensors have been reshaped by tensorplay.atleast_3d(). Parameters: tensors (sequence of Tensors) – sequence of tensors to concatenate Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.tensor([1, 2, 3]) >>> b = tensorplay.tensor([4, 5, 6]) >>> tensorplay.dstack((a,b)) tensor([[[1, 4], [2, 5], [3, 6]]]) >>> a = tensorplay.tensor([[1],[2],[3]]) >>> b = tensorplay.tensor([[4],[5],[6]]) >>> tensorplay.dstack((a,b)) tensor([[[1, 4]], [[2, 5]], [[3, 6]]]) ```