[fix] TestMultiThreadAutograd: propagate exception from child thread to main thread (#63018)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/62895
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63018
Reviewed By: anjali411
Differential Revision: D30225856
Pulled By: Varal7
fbshipit-source-id: b5dd7999de5060e06f8958ea3ce49e0b74110971