Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce some ambiguity in Tensor #92266

Closed
wants to merge 1 commit into from

Conversation

yinghai
Copy link
Contributor

@yinghai yinghai commented Jan 16, 2023

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

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 16, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/92266

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 2 Pending

As of commit 961ec6f:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 16, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: yinghai / name: Yinghai Lu (d1a23ef)

@pytorch-bot pytorch-bot bot added the release notes: cpp release notes category label Jan 16, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42538675

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42538675

yinghai pushed a commit to yinghai/pytorch that referenced this pull request Jan 17, 2023
Summary:
Pull Request resolved: pytorch#92266

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

fbshipit-source-id: f9a65c5b180a5b1789ad1c90496ab7d980556c27
@yinghai
Copy link
Contributor Author

yinghai commented Jan 17, 2023

/easycla

2 similar comments
@malfet
Copy link
Contributor

malfet commented Jan 17, 2023

/easycla

@yinghai
Copy link
Contributor Author

yinghai commented Jan 17, 2023

/easycla

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42538675

yinghai pushed a commit to yinghai/pytorch that referenced this pull request Jan 17, 2023
Summary:
Pull Request resolved: pytorch#92266

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

Reviewed By: malfet

Differential Revision: D42538675

fbshipit-source-id: ea9599381c154b0bc1761cc9338cb3751a1e789b
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42538675

yinghai pushed a commit to yinghai/pytorch that referenced this pull request Jan 17, 2023
Summary:
Pull Request resolved: pytorch#92266

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.

 ignore-github-export-checks

Test Plan: CI

Reviewed By: malfet

Differential Revision: D42538675

fbshipit-source-id: 4194fa8cfa20b5d5cb4c4c14f921e7a27c526218
Summary:
Pull Request resolved: pytorch#92266

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.

 ignore-github-export-checks

Test Plan: CI

Reviewed By: malfet

Differential Revision: D42538675

fbshipit-source-id: 3bb47ad0d8e1d510f9e5d9a31b48ac3a2e257f9c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42538675

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 18, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged release notes: cpp release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants