Torch.repeat_interleave on dictionary?

Yes, torch.repeat_interleave expects a tensor as its input.