webdataset icon indicating copy to clipboard operation
webdataset copied to clipboard

[FEATURE] Add NamedTuple or Dataclass conversion

Open cwerner opened this issue 3 years ago • 1 comments

Hi.

Just wondering if a conversion function to NamedTuple or Dataclass types is possible? We currently have to_tuple and to_dict, so maybe to_namedtuple/ to_dataclass would work, too?

Cheers, C

cwerner avatar Dec 08 '21 15:12 cwerner

That's a good suggestion.

tmbdev avatar Dec 09 '21 17:12 tmbdev