diff --git a/returnn/datasets/distrib_files.py b/returnn/datasets/distrib_files.py index f43a91c0e..be9e48ba7 100644 --- a/returnn/datasets/distrib_files.py +++ b/returnn/datasets/distrib_files.py @@ -130,6 +130,8 @@ def get_sub_epoch_dataset(files_subepoch: List[Tuple[str, str]]) -> Dict[str, An https://github.com/rwth-i6/returnn/issues/1524. """ + _getnewargs_exclude_attrs = CachedDataset2._getnewargs_exclude_attrs.union(("_num_shards", "_shard_index")) + def __init__( self, *,