Add parameter for pin memory of storage to support other devices. (#98692)
Fixes #ISSUE_NUMBER
Add parameter for pin memory of storage to support other devices.
In the future, other backends will provide their own allocators to create pin memory.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98692
Approved by: https://github.com/ezyang