make DataModule compatible with Python dataclass #8272
Labels
data handling
Generic data-related topic
feature
Is an improvement or enhancement
good first issue
Good for newcomers
help wanted
Open to be worked on
Milestone
🚀 Feature
Support the following:
Motivation
To reduce boilerplate code is at the core of philosophy in Lightning. It should be compatible with dataclasses.
Code sample
Here is an example. It currently does not work as we have some internal attributes that don't play well with the dataclass.
Alternatives
#3792 introduces
save_hyperparameters()
for the datamodule. However, I believe the dataclass approach here is not in conflict with that because both could be useful at the same time.The text was updated successfully, but these errors were encountered: