Code generation and deployment of trained policies
Once you train a reinforcement learning agent, you can generate code to deploy the optimal policy. For example, using MATLAB® Coder™ and GPU Coder™, you can generate C++ or CUDA® code and deploy neural network policies on embedded platforms.
|Generate MATLAB function that evaluates policy of an agent or policy object|
|Generate Simulink block that evaluates policy of an agent or policy object|
|Policy||Reinforcement learning policy|
- Deploy Trained Reinforcement Learning Policies
You can generate code for reinforcement learning agents using, for example, GPU Coder or MATLAB Coder.
- Generate Policy Block for Deployment
Generate a policy block to deploy a trained policy.