diff options
author | Yong Tang <yong.tang.github@outlook.com> | 2018-05-03 02:45:29 +0200 |
---|---|---|
committer | Jonathan Hseu <vomjom@vomjom.net> | 2018-05-02 17:45:29 -0700 |
commit | a44996a84b24c43cca40c685a009fd59275755ab (patch) | |
tree | b46b424b7991f05f9dda302cb03dccce1c3aeccc /tensorflow/core/example | |
parent | 187cd5da6bf7bf28a873cd043905f354f047c988 (diff) |
Add go_package to proto definition files (#17262)
* Add go_package to proto definition files
This fix tries to address the issue raised in 16282 by
add go_package to proto files, so that generated go files
have correct path.
This fix fixes 16282.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add go_package to proto definition in tensorflow/core/framework
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add go_package to proto definition in tensorflow/core/example
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Add go_package to proto definition in tensorflow/core/example
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/core/example')
-rw-r--r-- | tensorflow/core/example/example.proto | 2 | ||||
-rw-r--r-- | tensorflow/core/example/example_parser_configuration.proto | 1 | ||||
-rw-r--r-- | tensorflow/core/example/feature.proto | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/core/example/example.proto b/tensorflow/core/example/example.proto index b2b723278b..e7142a4ef9 100644 --- a/tensorflow/core/example/example.proto +++ b/tensorflow/core/example/example.proto @@ -7,7 +7,7 @@ option cc_enable_arenas = true; option java_outer_classname = "ExampleProtos"; option java_multiple_files = true; option java_package = "org.tensorflow.example"; - +option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/example"; package tensorflow; // An Example is a mostly-normalized data format for storing data for diff --git a/tensorflow/core/example/example_parser_configuration.proto b/tensorflow/core/example/example_parser_configuration.proto index 15846c0e30..b2c115d80e 100644 --- a/tensorflow/core/example/example_parser_configuration.proto +++ b/tensorflow/core/example/example_parser_configuration.proto @@ -6,6 +6,7 @@ option cc_enable_arenas = true; option java_outer_classname = "ExampleParserConfigurationProtos"; option java_multiple_files = true; option java_package = "org.tensorflow.example"; +option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/example"; package tensorflow; import "tensorflow/core/framework/tensor_shape.proto"; diff --git a/tensorflow/core/example/feature.proto b/tensorflow/core/example/feature.proto index da3dc59a12..6d81974aac 100644 --- a/tensorflow/core/example/feature.proto +++ b/tensorflow/core/example/feature.proto @@ -58,7 +58,7 @@ option cc_enable_arenas = true; option java_outer_classname = "FeatureProtos"; option java_multiple_files = true; option java_package = "org.tensorflow.example"; - +option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/example"; package tensorflow; // Containers to hold repeated fundamental values. |