Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does `tf.data.Dataset.map` preserve the input order?

Does tf.data.Dataset.map() preserve the order of input elements?
Specially when num_parallel_calls > 1?

like image 604
MBZ Avatar asked Mar 06 '23 22:03

MBZ


1 Answers

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.

like image 114
mrry Avatar answered Mar 15 '23 19:03

mrry