Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Trainer和save_inference_model的疑问

Open SnailTowardThesun opened this issue 8 years ago • 3 comments

使用fluid.Trainer进行训练,训练完成后,只能调用fluid.Trainer.save_params()进行保存,而没函数与fluid.io.save_inference_model对应。想请教下,该如何操作,才能生成__model__文件,供C++接口使用?

SnailTowardThesun avatar Sep 26 '18 12:09 SnailTowardThesun

建议用通用API,这个high level api用的是save_persistables(), 没法保存inference model

kuke avatar Sep 27 '18 05:09 kuke

两种API的区别可以参考 High/Low-level API简介

luotao1 avatar Sep 27 '18 05:09 luotao1

已经了解了,换为基础API去做

SnailTowardThesun avatar Sep 28 '18 05:09 SnailTowardThesun