aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/example_proto_fast_parsing.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-05-30 10:52:47 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-30 10:56:18 -0700
commit7280dafca161eb3413ea120d3dd07c63e5254e72 (patch)
tree7e14a2994ce2fd68ce5e58d0dd0b5960cf1f93d9 /tensorflow/core/util/example_proto_fast_parsing.cc
parent6c3b15915d7475aed4484e47361e7cd0871678f4 (diff)
Use "empty" member function to test for emptiness
PiperOrigin-RevId: 157483181
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing.cc')
-rw-r--r--tensorflow/core/util/example_proto_fast_parsing.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing.cc b/tensorflow/core/util/example_proto_fast_parsing.cc
index 096c60539e..c2cbc66722 100644
--- a/tensorflow/core/util/example_proto_fast_parsing.cc
+++ b/tensorflow/core/util/example_proto_fast_parsing.cc
@@ -935,8 +935,8 @@ Status FastParseExample(const Config& config,
for (size_t e = start; e < end; ++e) {
status_of_minibatch[minibatch] = FastParseSerializedExample(
serialized[e],
- (example_names.size() > 0 ? example_names[e] : "<unknown>"), e,
- config, config_index, hasher, &fixed_dense_values,
+ (!example_names.empty() ? example_names[e] : "<unknown>"), e, config,
+ config_index, hasher, &fixed_dense_values,
&varlen_dense_buffers[minibatch], &sparse_buffers[minibatch]);
if (!status_of_minibatch[minibatch].ok()) break;
}