I seem to recall encountering a Numpy or PyTorch method similar to numpy.tile
, except that it allowed partial tiling to reach specified dimensions. So if I had
a = np.array([[5, 6, 7, 8],
[1, 2, 3, 4]])
(or, correspondingly, t = torch.Tensor(a)
if this is a PyTorch method),
then
a.mystery_method((3,4))
would produce output
array([[5, 6, 7, 8],
[1, 2, 3, 4],
[5, 6, 7, 8]])
Unfortunately, I now can't find this method in the Numpy or Pytorch docs. Does it actually exist, and what is it if so?