We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ef1ca3 + 0d756a9 commit a35dad1Copy full SHA for a35dad1
tensorflow/core/kernels/data/experimental/to_tf_record_op.cc
@@ -87,6 +87,7 @@ class ToTFRecordOp : public AsyncOpKernel {
87
IteratorContext iter_ctx(std::move(params));
88
DatasetBase* finalized_dataset;
89
TF_RETURN_IF_ERROR(FinalizeDataset(ctx, dataset, &finalized_dataset));
90
+ core::ScopedUnref unref(finalized_dataset);
91
92
std::unique_ptr<IteratorBase> iterator;
93
TF_RETURN_IF_ERROR(finalized_dataset->MakeIterator(
0 commit comments