You meet this problem probably because there is a folder named 'torch' (but is not your package) somewhere else on your device.
Steps you may follow:
open your command board and type:
pip show torch
the location of this package will be displayed. follow the location and ensure there is Torch.py in that folder.
search on your device if there is any other folder named 'Torch'. If yes, change its name.