필터 지우기
필터 지우기

error using importONNXNetwork, importONNXNetwork cannot be called from compiled applications.

조회 수: 4 (최근 30일)
I used importONNXNetwork in MATLAB R2023b to load a .onnx file, then converted it into a DLL using MATLAB Compiler, and called it under Win64 through Visual Studio 2019. However, when running, I encountered an error: "Error using importONNXNetwork. importONNXNetwork cannot be called from compiled applications." What could be the issue?

채택된 답변

Walter Roberson
Walter Roberson 2024년 3월 20일
The issue is that you are not permitted to call importONNXNetwork in a compiled application.
You have to break the code into two pieces. The first piece is not to be compiled; it loads the required network, trains it, and saves the trained network into a .mat file. The second piece is to be compiled; it loads the trained network from the .mat file and uses it to predict() or classify()
In compiled applications, you are limited to loading a trained network and using the trained network. Compiled applications cannot import networks or manipulate the layers or train networks.
  댓글 수: 4
Alexander Mclean
Alexander Mclean 2024년 3월 21일
Thank you, brother, you are a genius.The problem is solved! ^_^

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 AI for Wireless에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by