aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/example
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-02-09 17:37:36 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-02-09 22:00:07 -0800
commit7218dadf0de57abc426d6efa3902dc5dd9179c86 (patch)
treeedd8c2d033d2ecdf22b0de7c2e57c90ebab36445 /tensorflow/core/example
parentedefc77002a392f70eb79fca57daa35e4df934e7 (diff)
Enables java_multiple_files for all tf protos, and sets the
outer class name consistently to <FileName>Protos. Also specifies the java namespace as org.tensorflow.*. This enables compiling tf protos with nano proto for Android (which currently does not work because of file/message name clashes) and follows the same convention for proto3 as used by the API platform. Change: 114279703
Diffstat (limited to 'tensorflow/core/example')
-rw-r--r--tensorflow/core/example/example.proto1
-rw-r--r--tensorflow/core/example/feature.proto1
2 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/core/example/example.proto b/tensorflow/core/example/example.proto
index d2e9f24563..fe4ece1bc8 100644
--- a/tensorflow/core/example/example.proto
+++ b/tensorflow/core/example/example.proto
@@ -4,6 +4,7 @@ syntax = "proto3";
import "tensorflow/core/example/feature.proto";
// option cc_enable_arenas = true;
+option java_outer_classname = "ExampleProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.example";
diff --git a/tensorflow/core/example/feature.proto b/tensorflow/core/example/feature.proto
index 130e142503..18c4851c41 100644
--- a/tensorflow/core/example/feature.proto
+++ b/tensorflow/core/example/feature.proto
@@ -55,6 +55,7 @@
syntax = "proto3";
// option cc_enable_arenas = true;
+option java_outer_classname = "FeatureProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.example";