pytorch
4450424b - Reduce some ambiguity in Tensor (#92266)

Commit
1 year ago
Reduce some ambiguity in Tensor (#92266) Summary: A lot of other libraries have their own `xyz::Tensor` data structure. Under some rare cases, when they interop with torch, there will be compilation error such as ``` torch/csrc/api/include/torch/data/samplers/random.h(49): error: "Tensor" is ambiguous ``` Making some of the `Tensor` namespace clear will resolve this. Test Plan: CI Differential Revision: D42538675 Pull Request resolved: https://github.com/pytorch/pytorch/pull/92266 Approved by: https://github.com/Skylion007, https://github.com/malfet
Author
Yinghai Lu
Committer
Parents
Loading