Error using DAGNetwork/predictBatch, Execution of script dictionary as a function is not supported

조회 수: 6 (최근 30일)
when I run the code
%% import kerasNetwork
net = importKerasNetwork("Model.h5")
%% predict
ypred = predict(net,xtest);
it's turns out
Error using DAGNetwork/predictBatch
Execution of script dictionary as a function is not supported:
C:\Program Files\MATLAB\R2022b\toolbox\matlab\datatypes\dictionary\dictionary.m
Error in DAGNetwork/calculatePredict (line 16)
Y = predictBatch( ...
Error in DAGNetwork/predict (line 192)
Y = this.calculatePredict( ...
Error in SeriesNetwork/predict (line 320)
Y = this.UnderlyingDAGNetwork.predict(X, varargin{:});
Error in untitled7 (line 21)
ypred = predict(net,xtest);
however, I also run the same code on another computer with the same version (which is 2022b), everything runs well without any errors.
I just confuse about it.

채택된 답변

Zhouxing An
Zhouxing An 2023년 5월 9일
이동: Matt J 2023년 5월 9일
xtest is a 100x10 double. I solved this problem by reinstalling a new version of matlab (matlab2023a), thanks for the reply.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by