在matlab function中导入net,但是出现了以下问题,尝试过6.3和8.1版本的MinG64,但是一直报错。Deep learning code generation using MinGW64 Compiler (C++) toolchain is not supported for mkldnn target.
15 views (last 30 days)
Show older comments
0 Comments
Accepted Answer
Angelo Yeo
on 20 May 2024
MinGW is not supported for this workflow yet. Would you install the Visual Studio 2022 and use its compiler? See the webpage below for instruction
Next, in the command window, enter "mex -setup c++" command and select Visual Studio compiler for C++ Compilation, and see if the workflow works.
For more information, see the doc below.
11 Comments
Angelo Yeo
on 22 May 2024
Edited: Angelo Yeo
on 22 May 2024
Hi @guiyang, thank you so much for sharing the model. I will share it with dev team and report the issue. Also, it's great to know that you had some progress.
The new issue is about checking validity of custom layer. The issue is described in the docs below.
There must be multiple classes generated for the imported model like "aten_linear0.m". Would you add the %#codegen pragma for all the custom layer classes and see if you can fix the issue?
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!