Leak autograd threads after wait limit (#53170)
Summary:
Leak autograd threads if TORCH_AUTOGRAD_SHUTDOWN_WAIT_LIMIT is reached
(default to 10 seconds)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53170
Reviewed By: zhangguanheng66
Differential Revision: D26821983
Pulled By: malfet
fbshipit-source-id: 310960564da7cd8c9f475432a8efbee32cfe6009