Getting this error in matlab coder, Function 'imageInputLayer' not supported for code generation.

조회 수: 7 (최근 30일)
So used coder.extrinsic('imageInputLayer') in code. But for this also getting error as below.
The extrinsic function 'imageInputLayer' is not available for standalone code generation. It must be eliminated for stand-alone code to be generated. It could not be eliminated because its outputs appear to influence the calling function. Fix this error by not using 'imageInputLayer' or by ensuring that its outputs are unused.
How to resolve this issue??
  댓글 수: 1
Nathan Malimban
Nathan Malimban 2023년 4월 12일
Walter is correct, codegen is not supported for DL training workflows, but is supported for DL inference workflows.
Are you trying to generate code for a function that trains a DL network? Could you elaborate more on your workflow and overall goal?

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

답변 (1개)

Walter Roberson
Walter Roberson 2023년 4월 12일
You can not fix it. That function is used for training networks, but code generation is not supported for training networks.
Code generation is supported for loading an already trained network and using it to predict or classify.

카테고리

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