Skip to content

Hide the OperatorKernel* argument from the stack based kernel API#29337

Closed
smessmer wants to merge 13 commits intogh/smessmer/114/basefrom
gh/smessmer/114/head
Closed

Hide the OperatorKernel* argument from the stack based kernel API#29337
smessmer wants to merge 13 commits intogh/smessmer/114/basefrom
gh/smessmer/114/head

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Nov 6, 2019

Stack from ghstack:

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

Differential Revision: D18361991

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Nov 6, 2019
This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

ghstack-source-id: 93411572
Pull Request resolved: #29337
@smessmer smessmer requested review from dzhulgakov and ezyang November 7, 2019 00:03
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Nov 7, 2019
Pull Request resolved: #29337

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.
ghstack-source-id: 93493003

Differential Revision: [D18361991](https://our.internmc.facebook.com/intern/diff/D18361991/)
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
This was referenced Nov 12, 2019
@smessmer smessmer requested a review from apaszke as a code owner November 12, 2019 23:08
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
…nel API"

This argument is needed by boxing wrappers so they're able to get a pointer to the corresponding unboxed kernel and call into it.
But if a kernel is registered in a boxed way, we don't need it and should hide this from the API.
This is especially needed for the backend fallback API where users would only be left wondering why this argument is there and what it does.
Also, hiding it allows us to potentially totally remove it in a future refactoring if we find some way to do so.

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

[ghstack-poisoned]
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.

2 participants