[tf.data] Fix uninitialized local variable in ParallelMapDataset.
authorDerek Murray <mrry@google.com>
Tue, 6 Mar 2018 02:54:33 +0000 (18:54 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 02:58:13 +0000 (18:58 -0800)
PiperOrigin-RevId: 187960354

tensorflow/core/kernels/data/parallel_map_dataset_op.cc

index 33053b1..7e373f2 100644 (file)
@@ -318,7 +318,7 @@ class ParallelMapDatasetOp : public UnaryDatasetOpKernel {
 
         // Get the next input element.
         std::vector<Tensor> input_element;
-        bool end_of_input;
+        bool end_of_input = false;
         result->status =
             input_impl_->GetNext(ctx, &input_element, &end_of_input);
         if (end_of_input) {