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

Fix named tensor build by enabling tensor.is_pinned and removing support for clone() #23597

Closed
wants to merge 1 commit into from

Conversation

zou3519
Copy link
Contributor

@zou3519 zou3519 commented Jul 31, 2019

is_pinned was moved to native_functions.yaml, disabling it for named
tensors. This PR re-enables its usage for named tensors.

I wrote a named inference rule for torch.clone(), but something happened
to it. Disable it for now so we can get the namedtensor ci to be green.

Test Plan:

  • Run tests [namedtensor ci]

@ssnl
Copy link
Collaborator

ssnl commented Jul 31, 2019

Thanks! Sorry about breaking this. What does this name_guard argument do? Also, I remember that there is named tensor CI build, right? CI seemed to have passed on the PR that moved this.

@zou3519
Copy link
Contributor Author

zou3519 commented Jul 31, 2019

Thanks! Sorry about breaking this. What does this name_guard argument do? Also, I remember that there is named tensor CI build, right? CI seemed to have passed on the PR that moved this.

No worries. Because named tensors are still experimental, if the build/test fails, I'm responsible for fixing it.

Also, I remember that there is named tensor CI build, right? CI seemed to have passed on the PR that moved this.

named tensor CI build is always green on pull requests because it doesn't do anything. This reflects how current pytorch devs should not worry about it.

If someone includes [namedtensor ci] in the pull request body, then it will actually run.

What does this name_guard argument do?

https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/README.md#named_guard

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Collaborator

@ssnl ssnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I learn something new everyday.

@zou3519 zou3519 changed the title Fix named tensor build by enabling tensor.is_pinned Fix named tensor build by enabling tensor.is_pinned and removing support for clone() Jul 31, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

for clone()

`is_pinned` was moved to native_functions.yaml, disabling it for named
tensors. This PR re-enables its usage for named tensors.

I wrote a named inference rule for torch.clone(), but something happened
to it. Disable it for now so we can get the namedtensor ci to be green.

Test Plan:
- Run tests [namedtensor ci]
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 31, 2019
…ort for clone() (#23597)

Summary:
`is_pinned` was moved to native_functions.yaml, disabling it for named
tensors. This PR re-enables its usage for named tensors.

I wrote a named inference rule for torch.clone(), but something happened
to it. Disable it for now so we can get the namedtensor ci to be green.
Pull Request resolved: pytorch/pytorch#23597

Test Plan: - run tests [namedtensor ci]

Differential Revision: D16581771

Pulled By: zou3519

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

@zou3519 merged this pull request in 08f7f27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants