c10d doesn't work with torch namespace (#14042)
authorZeming Lin <ebetica0@gmail.com>
Tue, 4 Dec 2018 21:42:11 +0000 (13:42 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 21:47:20 +0000 (13:47 -0800)
commit374b7975692e2bb0e2ea673453c24eb7075848b9
tree320862ce436ad8e937bb19c027526e9c9309660a
parent3aba2d99e14c2e2022c72f2ea37d4cf72fa8603a
c10d doesn't work with torch namespace (#14042)

Summary:
If both `Utils.hpp` and the `torch` namespace is included in the same file, the compiler won't know which fmap to use. I believe this is because of ADL. This change fixes that issue for me.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14042

Reviewed By: ezyang

Differential Revision: D13283810

Pulled By: ebetica

fbshipit-source-id: b68233336518230ba730e83ddac1226a66896533
torch/lib/c10d/Utils.hpp