During creation it checks if function has only 2 positional arguments. For shuffling to be used it should also accept a third argument, seed or seeds. Otherwise an exception is thrown when trying to pass shuffle=True to get_dataset().
|
_validate_args(dataset_fn, ["split", "shuffle_files"]) |
Also it only allows seed and not seeds later. But this never comes into effect since the whole things fails during creation.
|
_validate_args(self._dataset_fn, ["split", "shuffle_files", "seed"]) |