Make torch.Tensor(torch.tensor(1.0)) work (#58885)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/58885
Fixes #58884
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: gchanan
Differential Revision: D28687510
Pulled By: ezyang
fbshipit-source-id: 81325f501cc3e83cbac02f7c44ded9d396356bb8