Skip to content

Commit

Permalink
fix(hyfi/utils/datasets/load): replace DSCombine with hfds usage
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 13, 2023
1 parent 8f561a7 commit 7466634
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hyfi/utils/datasets/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from hyfi.utils.contexts import elapsed_timer
from hyfi.utils.logging import LOGGING

from .combine import DSCombine
from .types import DatasetType
from .utils import DSUtils

Expand Down Expand Up @@ -72,7 +71,7 @@ def load_data(
if isinstance(dset, (Dataset, IterableDataset)):
return {split: dset}
if concatenate:
return {split: DSCombine.concatenate_datasets(dset.values())}
return {split: hfds.concatenate_datasets(dset.values())}
else:
return {k: v for k, v in dset.items() if v is not None}

Expand Down

0 comments on commit 7466634

Please sign in to comment.