torch.tile
- torch.tile(input, dims) → Tensor
Constructs a tensor by repeating the elements of
input. Thedimsargument specifies the number of repetitions in each dimension.If
specifies fewer dimensions than has, then ones are prepended to until all dimensions are specified. For example, if has shape (8, 6, 4, 2) and is (2, 2), then is treated as (1, 1, 2, 2).