yxfGrace
yxfGrace
> 模型保存接口没有任何变化,可能是保存模型的时候其中一个节点被异常中断了,你可以再跑一次试试 可以稳定复现的呢 而且每次缺的模型都是相同的 所以应该不是随机问题
> 是做增量还是做预测? > 贴一下多机save/load的用法 用的就是官网上的这个demo https://github.com/PaddlePaddle/Paddle/blob/v1.3.0/python/paddle/fluid/tests/book/notest_understand_sentiment.py 只是改成了多机运行的模式 save: ``` def train_loop(main_program): exe.run(fluid.default_startup_program()) for pass_id in range(PASS_NUM): for data in train_data(): cost_val, acc_val = exe.run(main_program, feed=feeder.feed(data), fetch_list=[cost, acc_out]) print("cost=" + str(cost_val)...
> 调用`fluid.io.save_inference_model` 的时候把 训练的`main_program`传进去看看呢? 还是一样的报错呢
> 能把main_program的proto贴一下么, 把 load报错也贴一下 ``` def train_loop(main_program): exe.run(fluid.default_startup_program()) for pass_id in range(PASS_NUM): for data in train_data(): cost_val, acc_val = exe.run(main_program, feed=feeder.feed(data), fetch_list=[cost, acc_out]) print("cost=" + str(cost_val) + " acc=" +...
mpi作业中pserver和trainer通信的端口是paddlecloud分配的,可以提一个paddlecloud的icafe卡片,我们后面来跟进下,卡片提交地址 http://newicafe.baidu.com/issues/space/paddle-cloud-user
I have the same question, but I've solved. you can build the Sequential model again, then use load_weights but not load_model