can i convert ANN model to C++ code?

3 次查看(过去 30 天)
CL P
CL P 2023-11-5
回答: CL P 2024-5-13
Dear Expert,
I want to convert or create the ANN model to C++ code file. I develpoed a ANN model that predict one output correspondin to some input, so we have weight, bias, network and input parameters. could you suggest me how can i convert this ANN model to C++ code so that we can use this code or couple it in the other software like fluent.
Please let me know what is the step or procedure or any idea so that we can convert it,

回答(2 个)

Harsh
Harsh 2024-5-10
Hi,
From what I understand, you're looking to generate C++ code for an Artificial Neural Network (ANN) model. MATLAB Coder allows generation of code for pretrained networks such as ResNet-50, VGG16, etc. However, it's important to note that, currently, their selection is limited to Convolutional Neural Networks (CNNs) only.
While it's possible to create ANNs in MATLAB by manually adding and adjusting layers within a network, MATLAB Coder does not yet support code generation for custom models.
For more information on all the pretrained networks available in MATLAB, please refer to the following link:
I hope this information is helpful. Thank you!

CL P
CL P 2024-5-13
@Harsh Thank you for your reply, i do not understand, could you please desribed by an exmple which give weight and bias.

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by