aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/lib/io/py_record_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/lib/io/py_record_writer.cc')
-rw-r--r--tensorflow/python/lib/io/py_record_writer.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/tensorflow/python/lib/io/py_record_writer.cc b/tensorflow/python/lib/io/py_record_writer.cc
index e4e5268b0f..faf20df868 100644
--- a/tensorflow/python/lib/io/py_record_writer.cc
+++ b/tensorflow/python/lib/io/py_record_writer.cc
@@ -28,7 +28,7 @@ namespace io {
PyRecordWriter::PyRecordWriter() {}
PyRecordWriter* PyRecordWriter::New(const string& filename,
- const string& compression_type_string,
+ const io::RecordWriterOptions& options,
TF_Status* out_status) {
std::unique_ptr<WritableFile> file;
Status s = Env::Default()->NewWritableFile(filename, &file);
@@ -38,10 +38,6 @@ PyRecordWriter* PyRecordWriter::New(const string& filename,
}
PyRecordWriter* writer = new PyRecordWriter;
writer->file_ = std::move(file);
-
- RecordWriterOptions options =
- RecordWriterOptions::CreateRecordWriterOptions(compression_type_string);
-
writer->writer_.reset(new RecordWriter(writer->file_.get(), options));
return writer;
}