MCPcopy
hub / github.com/PaddlePaddle/PaddleRec / load_static_model

Function load_static_model

tools/utils/save_load.py:84–87  ·  view source on GitHub ↗
(program, model_path, prefix='rec_static')

Source from the content-addressed store, hash-verified

82
83
84def load_static_model(program, model_path, prefix='rec_static'):
85 logger.info("start load model from {}".format(model_path))
86 model_prefix = os.path.join(model_path, prefix)
87 param_state_dict = paddle.static.load(program, model_prefix)
88
89
90def load_static_parameter(program, model_path, prefix='rec_static'):

Callers 1

mainFunction · 0.90

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected