未验证 提交 c3ceb057 编写于 作者: M MRXLT 提交者: GitHub

Update TRAIN_TO_SERVICE.md

上级 fde27e94
# 使用PaddleServing快速搭建预测服务 # 使用PaddleServing快速搭建预测服务
## 准备环境 ## 准备环境
...@@ -193,7 +193,7 @@ if __name__ == "__main__": ...@@ -193,7 +193,7 @@ if __name__ == "__main__":
avg_cost, acc, prediction = cnn_net(data, label, dict_dim) avg_cost, acc, prediction = cnn_net(data, label, dict_dim)
optimizer = fluid.optimizer.SGD(learning_rate=0.01) optimizer = fluid.optimizer.SGD(learning_rate=0.01)
optimizer.minimize(avg_cost) optimizer.minimize(avg_cost)
#执行训练 #执行训练
exe = fluid.Executor(fluid.CPUPlace()) exe = fluid.Executor(fluid.CPUPlace())
exe.run(fluid.default_startup_program()) exe.run(fluid.default_startup_program())
epochs = 6 epochs = 6
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册