Generate Cuda code from a pretrained rlDDPGAgent object for NVIDIA board

3 views (last 30 days)
I want to use a pretrained rlDDPGAgent for my NVIDIA Jetson Nano.
With this Agent i want to steer a model car, so the actor net ends with a hyperbolic tangent layer.
Is there a way to use for example the GPU Coder to do the transformation or another suggested possibility?
Due to my account at university i have access to all of the matlab content.
Greetings
Oliver

Accepted Answer

Emmanouil Tzorakoleftherakis
If you see here, tha tanhLayer support code generation with GPU Coder starting in R2019b.
  5 Comments
Emmanouil Tzorakoleftherakis
This page has a list with prerequisites you need to have before generating GPU code. Specifically, you need the GPU Coder interface for Deep Learning libraries and the cudnn/tensorrt libraries installed. The env paths should be properly set up as well. Do you have these installed?
Oliver Struck
Oliver Struck on 6 Mar 2020
Finally i got it! All Matlab content was already installed, and the libraries were added to the CUDA Toolkit file, but i forgot to implement the environment variables and i forgot to add them to my Matlab workaround. After i did this the code generation was succesful. Thanks a lot for the good advices.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!