can i convert ANN model to C++ code?
3 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
回答(2 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!