Skip to content

Remove LeftRight from OperatorEntry and DispatchTable.#30328

Closed
resistor wants to merge 1 commit intopytorch:masterfrom
resistor:dispatch2
Closed

Remove LeftRight from OperatorEntry and DispatchTable.#30328
resistor wants to merge 1 commit intopytorch:masterfrom
resistor:dispatch2

Conversation

@resistor
Copy link
Contributor

No description provided.

@resistor resistor requested a review from smessmer November 22, 2019 19:27
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.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

this should also be changed to an array for the same concurrency concerns we had with the dispatch table. Maybe it actually makes sense to factor out the concept of a KernelTable (but up to you)

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not a lambda anymore, we can resolve the TODO and just inline doCallUnboxed here. Would make the code much easier. But doesn't necessarily have to happen in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

same here about inlining doCallUnboxedOnly.

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.

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

smessmer added a commit that referenced this pull request Nov 22, 2019
@smessmer smessmer closed this Nov 22, 2019
smessmer added a commit that referenced this pull request Nov 22, 2019
re-export of #30328

Differential Revision: [D18661518](https://our.internmc.facebook.com/intern/diff/D18661518/)

ghstack-source-id: 94447549
Pull Request resolved: #30333
smessmer added a commit that referenced this pull request Nov 23, 2019
facebook-github-bot pushed a commit that referenced this pull request Nov 23, 2019
Summary:
Pull Request resolved: #30333

re-export of #30328
ghstack-source-id: 94481321

Differential Revision: D18661518

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants