MCPcopy
hub / github.com/PaddlePaddle/PaddleFormers / load

Method load

paddleformers/trainer/trainer_callback.py:162–165  ·  view source on GitHub ↗

Load an instance from a file saved with `paddle.save`.

(cls, path)

Source from the content-addressed store, hash-verified

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

Callers 15

compare_with_baselineFunction · 0.80
update_paramsFunction · 0.80
test_simple_loadMethod · 0.80
test_to_json_fileMethod · 0.80
test_save_loadMethod · 0.80
test_save_loadMethod · 0.80
adamw_kernelFunction · 0.80

Calls

no outgoing calls

Tested by 10

update_paramsFunction · 0.64
test_simple_loadMethod · 0.64
test_to_json_fileMethod · 0.64
test_save_loadMethod · 0.64
test_save_loadMethod · 0.64