[tf.data] Fix concurrency issue in experimental/parallel_interleave_dataset_op.cc.
PiperOrigin-RevId: 269902894
This commit is contained in:
parent
bdcf4b6296
commit
6274f037d4
@ -716,7 +716,11 @@ class ParallelInterleaveDatasetOp::Dataset : public DatasetBase {
|
||||
// CHECKPOINT_MARKER_C
|
||||
// Non-OK iterator creation status has been notified to the
|
||||
// client.
|
||||
workers_[thread_index].cond_var.notify_one();
|
||||
if (dataset()->sloppy_) {
|
||||
sloppy_cond_var_.notify_one();
|
||||
} else {
|
||||
workers_[thread_index].cond_var.notify_one();
|
||||
}
|
||||
} else {
|
||||
bool end_of_sequence = false;
|
||||
while (!end_of_sequence) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user