torch_stack: Stack

Description Usage Arguments stack(tensors, dim=0, out=NULL) -> Tensor

View source: R/gen-namespace.R

Description

Stack

Usage

1
torch_stack(tensors, dim = 1L)

Arguments

tensors

(sequence of Tensors) sequence of tensors to concatenate

dim

(int) dimension to insert. Has to be between 0 and the number of dimensions of concatenated tensors (inclusive)

stack(tensors, dim=0, out=NULL) -> Tensor

Concatenates sequence of tensors along a new dimension.

All tensors need to be of the same size.


torch documentation built on Oct. 7, 2021, 9:22 a.m.