Could you describe the use case and issue a bit more? When are you running into this hang and would it be possible to post a minimal code snippet to reproduce the issue?
Also, could you update PyTorch to the latest release, if you are using an older one?