Error with CNN and RNN network
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using a CNN and RNN together in matlab i believe my layers are connected properly. The problem i get is when i try to train my network using trainNetwork i get an error stating:
"Error using trainNetwork (line 183)
Invalid training data. For a recurrent layer with output mode 'last', inputs must be cell arrays."
I belive it is to do with my input but I am unsure what how to fix it. The input train input is a 4D double from this error should it be in a different format?
댓글 수: 1
Asiya Al-Busaidi
2021년 7월 22일
Did you manage to solve this issue?
I have YTrain as catagorial array but still getting the same error msg.
답변 (1개)
Abhishek Gupta
2020년 12월 22일
Hi,
According to the error, you need to input cell array datatype to your network. This is because the recurrent layer with output mode 'last' in your network only takes the input of datatype cell arrays.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!