While validating my rlEnvironment: I am getting the following error?

3 ビュー (過去 30 日間)
Huzaifah Shamim
Huzaifah Shamim 2020 年 7 月 22 日
コメント済み: Huzaifah Shamim 2020 年 7 月 22 日
I am unsure how to test it to see where I am getting this error. Any help would be greatly appreciated
Error in Environment (line 50)
env = rlFunctionEnv(ObsInfo,ActionInfo,'myStepFunction','myResetFunction');
Caused by:
Unable to perform assignment because the left and right sides have a different number of elements.
  2 件のコメント
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2020 年 7 月 22 日
If you share your environment it will be easier to help, but it looks like there is a size mismatch somewhere. Try calling your step and reset functions manually and see if inputs/outputs make sense.
Huzaifah Shamim
Huzaifah Shamim 2020 年 7 月 22 日
Yes the issue was I was trying to update an array by increasing the size. In the end, I just preallocated size and then just shrinked it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by