is generatePolicyFunction still not supported for agents with RNN
2 次查看(过去 30 天)
显示 更早的评论
is generatePolicyFunction still not supported for agents with RNN for C++ hardware deployment and is there a solution?
0 个评论
采纳的回答
Dhruv
2023-9-20
The ‘generatePolicyFunction’ is not supported for agents with RNN (Recurrent Neural Network) when it comes to C++ hardware deployment. For detailed information, you can refer to the documentation available: https://in.mathworks.com/help/releases/R2023a/reinforcement-learning/ug/deploy-trained-reinforcement-learning-agents.html
The documentation explicitly mentions in paragraph two that " Code generation is not supported for continuous actions PG, AC, PPO, and SAC agents using a recurrent neural network (RNN)."
If your agent relies on an RNN architecture, it is important to note that it may not be directly deployable using 'generatePolicyFunction' for C++ hardware deployment.
In such cases, a potential workaround could involve switching to a feedforward neural network, even though RNNs are generally better suited for sequential data. However, this may be a feasible option if your task is relatively straightforward.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!