faster TensorOptions merging (#45046)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45046
Test Plan: Imported from OSS
Reviewed By: ezyang
Differential Revision: D23806787
Pulled By: bhosmer
fbshipit-source-id: 3c8304f9a4503658081f8805ec06da78a467e125