Python's (3.7+) data classes in pyTorch?

Hi everyone,

Hope this is the right place to drop this. I came across this relatively new feature in python (https://www.python.org/dev/peps/pep-0557/). From the examples posted, it seems to me that it might make the boilerplate code for the typical pytorch model definitions even cleaner (although it might be confusing at first?).

I just thought I’d drop it here in case it is interesting for you.

Kind regards,
Theodore.

1 Like