What is the different between tf.data.experimental.TFRecordWriter and tf.io.TFRecordWriter?
1 Like
E.g. this official tutorial mix both the API. /cc @markdaoust
1 Like
That’s the right link, thanks @Bhack.
The main differences are:
tf.io.TFRecordWriter
is a python interface where you callwriter.write(example)
.tf.data.experimental.TFRecordWriter
is experimental, and writes out a wholetf.data.Dataset
. If you already have your data in a tf.data.Dataset, that may be simpler.
4 Likes