"localAgen​tFunctions​ForMemUsag​e" could not be recognized

When training SAC, two agents are constructed using convolutional neural networks and LSTM respectively, with each agent containing one actor network and two critic networks. After configuring both the actor and critic networks to be trained on GPU, an error occurs stating that the function or variable "localAgentFunctionsForMemUsage" cannot be recognized. How can this issue be resolved?

1 Kommentar

This might be a bug in the source code. Please create a service request with Technical Support and we will get you a fix.
https://www.mathworks.com/help/matlab/matlab_env/contact-technical-support.html

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Steven Lord
Steven Lord vor etwa 5 Stunden

0 Stimmen

My guess is that you've made a copy of one of the examples from the documentation to use as a starting point for your code, but you didn't copy one of the helper functions created as part of that example into your code. If that's the case, please click on the "Copy Command" button in the upper-right corner of the example page then paste that command into MATLAB and run it. Alternately, click "Open Example in MATLAB Online" if you are using MATLAB Online. This will cause MATLAB to open the example and change to the directory containing the files for the example, which may include helper functions that were created for the example rather than being part of the product(s) the example uses.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2026a

Gefragt:

am 13 Jul. 2026 um 4:06

Kommentiert:

am 13 Jul. 2026 um 16:33

Community Treasure Hunt

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

Start Hunting!

Translated by