Skip to content
Advertisement

Tag: tfrecord

Split .tfrecords file into many .tfrecords files

Is there any way to split .tfrecords file into many .tfrecords files directly, without writing back each Dataset example ? Answer You can use a function like this: For example, to split the file my_records.tfrecord into parts of 100 records each, you would do: This would create multiple smaller record files my_records.tfrecord.000, my_records.tfrecord.001, etc.

Advertisement