pytorch
2a78e896 - [DDP] use work.result() in _check_global_requires_backward_grad_sync (#59065)

Commit
3 years ago
[DDP] use work.result() in _check_global_requires_backward_grad_sync (#59065) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/59065 Cleaner to use work.result() instead of sending back the tensor from this function. ghstack-source-id: 130338813 Test Plan: CI Reviewed By: SciPioneer Differential Revision: D28551203 fbshipit-source-id: d871fed78be91f0647687ea9d6fc86e576dc53a6
Author
Parents
Loading