Load an instance from a file saved with `paddle.save`.
(cls, path)
| 160 | |
| 161 | @classmethod |
| 162 | def load(cls, path): |
| 163 | """Load an instance from a file saved with `paddle.save`.""" |
| 164 | state = paddle.load(path) |
| 165 | return state |
| 166 | |
| 167 | |
| 168 | @dataclass |
no outgoing calls