在matlab function中导入net,但是出现了以下问题,尝试过6.3和8.1版本的MinG64,但是一直报错。Deep learning code generation using MinGW64 Compiler (C++) toolchain is not supported for mkldnn target.
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Respuesta aceptada
Angelo Yeo
el 20 de Mayo de 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 comentarios
Angelo Yeo
el 22 de Mayo de 2024
Editada: Angelo Yeo
el 22 de Mayo de 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1701286/image.png)
Más respuestas (0)
Ver también
Categorías
Más información sobre Deep Learning Code Generation Fundamentals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!