-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add description how to generate ops wrapper #7626
Conversation
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. Some suggestions below, to link to the protoc and simplify the command.
Out of curiosity (and it doesn't affect this PR), might I ask what led you to have to generate your own wrappers?
tensorflow/go/README.md
Outdated
- Downloading Tensorflow repository under GOPATH | ||
|
||
``` | ||
# Gegerate Go source from protobuf files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be replaced by a single:
go generate github.com/tensorflow/tensorflow/tensorflow/go/op
(Doing so does the generation needed for the genop
tool as well as actually generating wrappers.go)
tensorflow/go/README.md
Outdated
@@ -118,6 +118,25 @@ from source. | |||
go test github.com/tensorflow/tensorflow/tensorflow/go | |||
``` | |||
|
|||
### Generate Ops Wrapper | |||
|
|||
Tensorflow ops wrappers in Go is generated by a script. Here is how to generate Go source files for Tensorflow ops. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We tend to prefer TensorFlow, not Tensorflow :)
tensorflow/go/README.md
Outdated
@@ -118,6 +118,25 @@ from source. | |||
go test github.com/tensorflow/tensorflow/tensorflow/go | |||
``` | |||
|
|||
### Generate Ops Wrapper | |||
|
|||
Tensorflow ops wrappers in Go is generated by a script. Here is how to generate Go source files for Tensorflow ops. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps reword:
Go functions corresponding to TensorFlow operations are generated in op/wrappers.go
. To regenerate them:
Prerequisites:
- Protocol buffer compiler (protoc) 3.x
- The TensorFlow repository under GOPATH
ea1992c
to
a2bd48f
Compare
@asimshankar Thanks for review. I updated accordingly.
Just for development. I tried to find which API is not generated as wrappers. And there seems to be some diffs between current |
We currently update |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change. Took the liberty to fix a typo or two.
@tensorflow-jenkins test this please |
Jenkins, test this please. |
@maciekcc : The CLA failure is just because it's being cautious about my typo fixes. I believe this is good to merge. |
We should merge this. Currently I'm not able to do so, due to the red status from CLAbot, even though we've verified that we have CLA consent. |
Generating instruction of ops wrapper is useful for development of go binding.