主要内容

深度学习代码生成基础知识

可用于为深度学习网络生成代码的函数、对象和工作流

您可以将 MATLAB® Coder™ 与 Deep Learning Toolbox™ 结合使用,从经过训练的 CNN 生成 C++ 代码。然后您可以将生成的代码部署到使用 Intel® 或 ARM® 处理器的嵌入式平台。您还可以从不依赖任何第三方库的经过训练的 CNN 生成泛型 C 或 C++ 代码。

函数

codegenMATLAB 代码生成 C/C++ 代码
coder.loadDeepLearningNetwork加载深度学习网络模型
coder.DeepLearningConfig创建深度学习代码生成配置对象
coder.DeepLearningCodeConfigParameters to configure deep learning code generation that does not depend on third-party libraries (自 R2021a 起)
coder.ai.enableParameterUpdateEnables run-time update of network parameters (自 R2025a 起)
coder.ARMNEONConfigParameters to configure deep learning code generation with the ARM Compute Library
coder.CMSISNNConfigParameters to configure deep learning code generation with the CMSIS-NN library for Cortex-M targets (自 R2022a 起)
coder.MklDNNConfigParameters to configure deep learning code generation with the Intel Math Kernel Library for Deep Neural Networks
analyzeNetworkForCodegen分析深度学习网络以进行代码生成 (自 R2022b 起)
coder.regenerateDeepLearningParametersRegenerate files containing network learnables and states parameters (自 R2021b 起)

代码配置参数

深度学习目标库Target library for deep learning code generation
可学习参数压缩Compression type
ARM Compute Library 版本Version of ARM Compute Library
ARM Compute 架构ARM architecture supported in the target hardware
数据类型(ARM Compute)Inference computation precision
标定结果文件路径(ARM Compute)Location of calibration MAT file
数据类型(CMSIS-NN)Inference computation precision
标定结果文件路径(CMSIS-NN)Location of calibration MAT file

主题

相关信息

精选示例