PaddlePaddle / PARL

A high-performance distributed training framework for Reinforcement Learning
https://parl.readthedocs.io/
Apache License 2.0
3.24k stars 819 forks source link

DDPG算法是否有静态图推理的过程 #914

Closed w5688414 closed 2 years ago

w5688414 commented 2 years ago

请问有没有加载保存后的inference模型的教程,我只看见了保存过程:

# 保存Actor-Critic算法的策略网络结构和参数到./inference_ac_model_dir
agent.save_inference_model('./inference_ac_model_dir', [[None, 128]], ['float32'], agent.alg.model.actor_model)
TomorrowIsAnOtherDay commented 2 years ago

没有的,如果需要保存后重新加载,请使用save&restore这两个配套的API。 save_inference_model 仅用于推理部署,不适用于热启动接着训练。

w5688414 commented 2 years ago

请问有推理部署的示例不?我做了一个应用,希望打通推理部署环节

TomorrowIsAnOtherDay commented 2 years ago

没有:)我们在公司内部上线走的是另一套托管在icode的代码,直接C++训练和上线。