Jeremy Reizenstein e10a90140d enable_get_default_args to allow pickling get_default_args(f)
Summary:
Try again to solve https://github.com/facebookresearch/pytorch3d/issues/1144 pickling problem.
D35258561 (24260130ce) didn't work.

When writing a function or vanilla class C which you want people to be able to call get_default_args on, you must add the line enable_get_default_args(C) to it. This causes autogeneration of a hidden dataclass in the module.

Reviewed By: davnov134

Differential Revision: D35364410

fbshipit-source-id: 53f6e6fff43e7142ae18ca3b06de7d0c849ef965
2022-04-06 03:32:31 -07:00
..
2022-02-10 09:39:44 -08:00
2022-01-04 11:43:38 -08:00
2022-01-04 11:43:38 -08:00
2022-01-24 10:52:23 -08:00
2022-03-29 05:09:27 -07:00
2022-01-04 11:43:38 -08:00
2022-01-04 11:43:38 -08:00
2022-03-16 05:42:34 -07:00
2022-02-21 09:26:38 -08:00
2022-01-04 11:43:38 -08:00
2022-01-20 09:44:38 -08:00
2022-01-04 11:43:38 -08:00
2022-02-25 07:53:34 -08:00
2022-02-21 07:24:21 -08:00
2022-01-04 11:43:38 -08:00
2022-02-25 07:53:34 -08:00
2022-01-04 11:43:38 -08:00
2022-01-04 11:43:38 -08:00
2022-01-04 11:43:38 -08:00
2020-01-23 11:53:46 -08:00