Skip to content

Conversation

@vishwakftw
Copy link
Contributor

Changelog:

  • Wrap dim to be a positive integer when dim is negative

Test plan:

  • Updated tests in test_namedtensor.py

Fixes #31184

Changelog:
- Wrap dim to be a positive integer when dim is negative

Test plan:
- Updated tests in test_namedtensor.py
@vishwakftw vishwakftw requested a review from zou3519 December 12, 2019 21:04
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

Thank you!

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 is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@vishwakftw
Copy link
Contributor Author

@zou3519 is this good to go? I see some failing internals tests.

@zou3519
Copy link
Contributor

zou3519 commented Dec 16, 2019

@vishwakftw Yeah this should be good to go. I'm going to trigger the land again

@vishwakftw vishwakftw deleted the unflatten-neg-dims-fix branch December 16, 2019 20:48
@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 455e85a.

vishwakftw added a commit to vishwakftw/pytorch that referenced this pull request Dec 18, 2019
Summary:
Changelog:
- Wrap dim to be a positive integer when dim is negative
Pull Request resolved: pytorch#31208

Test Plan:
- Updated tests in test_namedtensor.py

Fixes pytorch#31184

Differential Revision: D19036569

Pulled By: zou3519

fbshipit-source-id: 86e01e20988dee7c4b6c73232f66282d687f9a2c
mingbowan pushed a commit that referenced this pull request Dec 20, 2019
Summary:
Changelog:
- Wrap dim to be a positive integer when dim is negative
Pull Request resolved: #31208

Test Plan:
- Updated tests in test_namedtensor.py

Fixes #31184

Differential Revision: D19036569

Pulled By: zou3519

fbshipit-source-id: 86e01e20988dee7c4b6c73232f66282d687f9a2c
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary:
Changelog:
- Wrap dim to be a positive integer when dim is negative
Pull Request resolved: pytorch#31208

Test Plan:
- Updated tests in test_namedtensor.py

Fixes pytorch#31184

Differential Revision: D19036569

Pulled By: zou3519

fbshipit-source-id: 86e01e20988dee7c4b6c73232f66282d687f9a2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unflatten segmentation faults if dim is negative integer

4 participants