Error while running reinforcement learning agent
Show older comments
Error:-
Error using rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line 681)
Invalid input argument type or size such as observation, reward, isdone or loggedSignals.
Error using rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line 681)
Unable to compute gradient from representation.
Error using rl.env.SimulinkEnvWithAgent>localHandleSimoutErrors (line 681)
Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension.
Running code using cpu. Matlab version 2020b.
Checked the dimesion and size all looks proper. What can be the possible cause of error
4 Comments
Walter Roberson
on 15 Sep 2021
What is the class and size of the parameters you are using?
Gaurav Shetty
on 15 Sep 2021
Gaurav Shetty
on 15 Sep 2021
Guanlong Chen
on 26 May 2022
Have you solved your problem? I have met the same problem
Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!