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
if (tensors.size() == 1) {
return flatten(tensors[0]);
}
- return at::cat(fmap(tensors, flatten));
+ return at::cat(::c10d::fmap(tensors, flatten));
}
inline at::Tensor newLikeFlat(