Repository navigation
[PluggableDevice]Add kernel and stream executor c api extension - #44747
Merged
copybara-service[bot] merged 3 commits intoNov 25, 2020
Merged
copybara-service[bot] merged 3 commits into
copybara-service[bot] merged 3 commits into
Conversation
annarev
approved these changes
Nov 17, 2020
| ":tf_tensor", | ||
| "//tensorflow/core:framework", | ||
| "//tensorflow/core:framework_lite", | ||
| "//tensorflow/c/experimental/stream_executor:stream_executor", |
Contributor
Author
There was a problem hiding this comment.
done, thanks for reminder.
|
|
||
| // TF_InitKernel to do op/kernel registration. | ||
| // Plugin should either implement TF_InitKernel to register kernels or use | ||
| // static registration. This function should register all kernels in a plugin. |
Contributor
There was a problem hiding this comment.
Let's remove mention of "static registration" per Sanjoy's comment on this PR: https://github.com/tensorflow/tensorflow/pull/43610/files
annarev
approved these changes
Nov 17, 2020
sanjoy
suggested changes
Nov 17, 2020
Comment on lines
+41
to
+46
| namespace { | ||
| struct TFStatusDeleter { | ||
| void operator()(TF_Status* s) const { TF_DeleteStatus(s); } | ||
| }; | ||
| using OwnedTFStatus = std::unique_ptr<TF_Status, TFStatusDeleter>; | ||
| } // namespace |
Contributor
There was a problem hiding this comment.
No anonymous namespaces in headers please: https://google.github.io/styleguide/cppguide.html#Unnamed_Namespaces_and_Static_Variables
Contributor
Author
There was a problem hiding this comment.
@sanjoy I have changed the code as your request, could you help to take a look? If there is any thing need to change, please let me know. Thanks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend current kernel C API and refactor some stream executor C API