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

Function save_data

tools/utils/save_load.py:97–101  ·  view source on GitHub ↗
(fetch_batch_var, save_path, prefix='result')

Source from the content-addressed store, hash-verified

95
96
97def save_data(fetch_batch_var, save_path, prefix='result'):
98 logger.info("start save batch data")
99 save_data = np.array(fetch_batch_var, dtype=object)
100 model_prefix = os.path.join(save_path, prefix)
101 np.save(model_prefix, save_data)

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected