Current behavior of shuffle() and cache() is not very performant since calling dataset.cache().shuffle(), dataset.cache().cache(), dataset.shuffle().shuffle() or other combinations creates copies instead of letting the arguments go through if the input is already cached, which is costly for no reason.
I also fixed a couple of typos in the documentation.
Current behavior of
shuffle()
andcache()
is not very performant since callingdataset.cache().shuffle()
,dataset.cache().cache()
,dataset.shuffle().shuffle()
or other combinations creates copies instead of letting the arguments go through if the input is already cached, which is costly for no reason.I also fixed a couple of typos in the documentation.