Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Sep 17, 2019

Stack from ghstack:

Test Plan:

  • [namedtensor ci]

Differential Revision: D17484759

Test Plan:
- [namedtensor ci]
@zou3519 zou3519 requested a review from apaszke as a code owner September 17, 2019 20:18
@pytorchbot pytorchbot added module: autograd Related to torch.autograd, and the autograd engine in general module: internals Related to internal abstractions in c10 and ATen module: operators module: pybind Related to our Python bindings / interactions with other Python libraries labels Sep 17, 2019
Test Plan:
- [namedtensor ci]
@zou3519 zou3519 requested review from nairbv and removed request for apaszke September 17, 2019 20:22
}
auto it = std::find_if(other_names.begin(), other_names.end(),
[&](const Dimname& candidate) { return name.can_refer_to(candidate); });
[&](const Dimname& candidate) { return name == candidate; });
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can use std::find() without the lambda?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed, that made the code a lot nicer. Thank you for catching it!

Test Plan:
- [namedtensor ci]
Test Plan:
- [namedtensor ci]
Test Plan:
- [namedtensor ci]
@zou3519 zou3519 mentioned this pull request Sep 19, 2019
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 20, 2019
Summary: Pull Request resolved: pytorch/pytorch#26365

Test Plan: - [namedtensor ci]

Differential Revision: D17484759

Pulled By: zou3519

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

@zou3519 merged this pull request in 6703587.

mingbowan pushed a commit to mingbowan/pytorch that referenced this pull request Sep 23, 2019
Summary: Pull Request resolved: pytorch#26365

Test Plan: - [namedtensor ci]

Differential Revision: D17484759

Pulled By: zou3519

fbshipit-source-id: 44068c1e9d84adf36c5ab5e7006a153b948914d6
@facebook-github-bot facebook-github-bot deleted the gh/zou3519/176/head branch October 28, 2019 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: autograd Related to torch.autograd, and the autograd engine in general module: internals Related to internal abstractions in c10 and ATen module: pybind Related to our Python bindings / interactions with other Python libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants