Skip to content

Commit

Permalink
Support LargeList in require_decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Aug 5, 2024
1 parent b27a8a1 commit 9ec883b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datasets/features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,8 @@ def require_decoding(feature: FeatureType, ignore_decode_attribute: bool = False
return any(require_decoding(f) for f in feature.values())
elif isinstance(feature, (list, tuple)):
return require_decoding(feature[0])
elif isinstance(feature, LargeList):
return require_decoding(feature.dtype)
elif isinstance(feature, Sequence):
return require_decoding(feature.feature)
else:
Expand Down

0 comments on commit 9ec883b

Please sign in to comment.