Does tf.data.Dataset.map()
preserve the order of input elements?
Specially when num_parallel_calls > 1
?
Yes, Dataset.map()
produces transformed elements in the same order that the original elements appeared in the input, for all values of num_parallel_calls
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With