Pytorch version for torch.tile and torch.repeat

I used “torch.tile” and “torch.repeat” in google colab and working fine. After printing “print(torch.version)” giving the version “1.10.0+cu111”.

In PC, After printing “print(torch.version)” gives the version " 1.7.1". For both the function,It shows the error “module torch has no attribute”

(1) Which version should i need to install to use torch.tile and torch.repeat?
(2) Should i replace torch.tile with torch.repeat?

Installing torch version 1.10.0 on your PC should work