Add torch.from_file function similar to the Storage.from_file, but returning tensor (#18688)
Summary:
Porting `torch.Storage.from_file(filename, shared, size)` function to `torch.from_file(filename, shared, size, dtype=torch.int)`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18688
Differential Revision: D15012644
Pulled By: VitalyFedyunin
fbshipit-source-id: 3f62ca9e414fad3847fe71b785ff97b5bdc2d2cd