- My goal is to save to disk a tf.data.Dataset without ever having to load all the data into memory
2 & 3. I've tried the following:
for ...
data = generatemydata(...)
ds = tf.data.Dataset.from_tensor_slices(data)
ds.save(path)
This doesn't work because each .save() saves over the previous dataset in the loop. At the end if I try to load this, only the last dataset survived