フィルターのクリア

Cannot find the object of 'ONNXParameters' Class after using "Application Compiler".

1 回表示 (過去 30 日間)
Dear MATLAB team,
My compiled application cannot work well. The console gives me a message that shows
"警告:无法加载类“ONNXParameters”的对象
找不到其类".
1. I chose the supported package "Deploy Imported Models for ONNX Model Formate....".
2. I added all files of the folder "+model" (created by using API "importONNXNetwork") when compile the app.
3. The imported network works well in Matlab environment.
Is it a Bug? Or I make some mistakes? What should I do next?

採用された回答

David Willingham
David Willingham 2022 年 4 月 27 日
When using the compiler, sometimes the dependency checker can't find all the object classes.
Try addind the function pragma to your code so the dependency checker is knows which object classes to include. See this doc page:
Try placing this comment in one of your m-files you're compiling:
%#function ONNXParameters
  3 件のコメント
wenliang zhu
wenliang zhu 2022 年 4 月 27 日
Thanks for your timely response! My problem is solved. And now, my application works well! Thank you !
David Willingham
David Willingham 2022 年 4 月 27 日
Great to hear!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by