필터 지우기
필터 지우기

Error changing miniBatchSize in included deep learning example

조회 수: 2 (최근 30일)
Javier Bush
Javier Bush 2019년 10월 17일
답변: Tish Sheridan 2019년 11월 6일
Hello
I am using the example in 2019b
openExample('nnet/SeqToSeqClassificationUsing1DConvAndModelFunctionExample')
But when i changed the miniBatchSize to 2 I get the following error. I am trying to understand the example so will help to be able to change the miniBatchSize to a different value
Workarounds?
Index exceeds the number of array elements (1).
Error in SeqToSeqClassificationUsing1DConvAndModelFunctionExample>maskedCrossEntropyLoss (line 486)
idx = 1:numTimeSteps(i);
Error in SeqToSeqClassificationUsing1DConvAndModelFunctionExample>modelGradients (line 472)
loss = maskedCrossEntropyLoss(dlY, dlT, numTimeSteps);
Error in deep.internal.dlfeval (line 18)
[varargout{1:nout}] = fun(x{:});
Error in dlfeval (line 40)
[varargout{1:nout}] = deep.internal.dlfeval(fun,varargin{:});
Error in SeqToSeqClassificationUsing1DConvAndModelFunctionExample (line 287)
[gradients, loss] = dlfeval(@modelGradients,dlX,Y,parameters,hyperparameters,numTimeSteps);

채택된 답변

Tish Sheridan
Tish Sheridan 2019년 11월 6일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by