aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/example
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-03-02 09:59:13 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-03-02 10:17:24 -0800
commitd3e8e04684fabf5e22d5993845f910e5d366bacb (patch)
treedcc04afa31eacd08cda24653875219daa6f6d573 /tensorflow/core/example
parent93587a2f3181d8c7464015e2ceb33c9ede532f54 (diff)
Use java_generate_equals_and_hash=true for Features and Examples. Without it, generic reflective implementations of equals() and hashCode() are used, which are much slower.
Change: 116150839
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 fe4ece1bc8..1b5799b4f0 100644
--- a/tensorflow/core/example/example.proto
+++ b/tensorflow/core/example/example.proto
@@ -7,6 +7,7 @@ import "tensorflow/core/example/feature.proto";
option java_outer_classname = "ExampleProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.example";
+option java_generate_equals_and_hash = true;
package tensorflow;
diff --git a/tensorflow/core/example/feature.proto b/tensorflow/core/example/feature.proto
index 18c4851c41..af59bd6979 100644
--- a/tensorflow/core/example/feature.proto
+++ b/tensorflow/core/example/feature.proto
@@ -58,6 +58,7 @@ syntax = "proto3";
option java_outer_classname = "FeatureProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.example";
+option java_generate_equals_and_hash = true;
package tensorflow;