run the executable on the PC without Deep Learning Toolbox installed
古いコメントを表示
I installed Matlab R2022a on my PC, Deep Learning Toolbox is also installed. I used the functions of Deep Learning Toolbox in my code, then build a Matlab executable.
I want to run this Matlab executable on another PC, Matlab Runtime R2022a is installed on this PC, I found Deep Learning Toolbox is not installed, Matlab executable crash when running on this PC.
Do you know how to install Deep Learning Toolbox in Matlab Runtime? or how can I run the executable on the PC without Deep Learning Toolbox installed?
回答 (1 件)
Walter Roberson
2023 年 4 月 14 日
0 投票
You cannot compile any of the learning / training functions of Deep Learning Toolbox.
You can however train a network beforehand, save the network to a .mat file, and then construct different code that load()'s the network and uses it for prediction or classification, and compile that code.
4 件のコメント
bo
2023 年 4 月 14 日
編集済み: Walter Roberson
2023 年 4 月 14 日
Walter Roberson
2023 年 4 月 14 日
When you use that form of load(), the variable "poofs" into existence, and MATLAB does not know it has been created. You should use
%#function dlnetwork
datacell = load("model.mat","nnetwork");
nnetwork = datacell.nnetwork;
Note that if you want to use predict() then you need to do
nnet = importONNXLayers(modelPath, ...);
nnetwork = dlnetwork(nnet);
save("model.mat","nnetwork");
Using assembleNetwork like you did would be for the case where you planned to use classify()
bo
2023 年 4 月 19 日
Steven Lord
2023 年 4 月 19 日
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!