"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 个评论

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

请先登录,再进行评论。

回答(1 个)

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.

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

产品

版本

R2026a

提问:

2026-7-13,4:06

评论:

2026-7-13,16:33

Community Treasure Hunt

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

Start Hunting!

Translated by