Add torch.cuda.comm to typechecking CI (#45350)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45350

Reviewed By: walterddr

Differential Revision: D23935750

Pulled By: malfet

fbshipit-source-id: 5a7d2d4fbc976699d80bb5caf4727c19fa2c5bc8
This commit is contained in:
Nikita Shulga 2020-09-25 12:11:30 -07:00 committed by Facebook GitHub Bot
parent 22401b850b
commit c8166d4b58
2 changed files with 3 additions and 3 deletions

View File

@ -186,8 +186,8 @@ ignore_errors = True
[mypy-torch.cuda.amp.*]
ignore_errors = True
[mypy-torch.cuda.comm]
ignore_errors = True
#[mypy-torch.cuda.comm]
#ignore_errors = True
[mypy-torch.cuda.nccl]
ignore_errors = True

View File

@ -2,4 +2,4 @@
from torch.nn.parallel.comm import broadcast, broadcast_coalesced, reduce_add, \
reduce_add_coalesced, scatter, gather
__all__ = [broadcast, broadcast_coalesced, reduce_add, reduce_add_coalesced, scatter, gather]
__all__ = ['broadcast', 'broadcast_coalesced', 'reduce_add', 'reduce_add_coalesced', 'scatter', 'gather']