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"]) |
During creation it checks if function has only 2 positional arguments. For shuffling to be used it should also accept a third argument,
seedorseeds. Otherwise an exception is thrown when trying to passshuffle=Truetoget_dataset().seqio/seqio/dataset_providers.py
Line 341 in 71e47ac
Also it only allows
seedand notseedslater. But this never comes into effect since the whole things fails during creation.seqio/seqio/dataset_providers.py
Line 373 in 71e47ac