TensorTypeId-based non-RAII setter/getter for LocalTensorTypeSet (#30113)
Summary:
As discussed in https://github.com/pytorch/pytorch/pull/29592, https://github.com/pytorch/pytorch/pull/29592#issuecomment-553043596.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30113
Differential Revision: D18620080
Pulled By: ezyang
fbshipit-source-id: 0b10a703e68aca6a991d500fb478bd320006d31b