How do I export a neural network from MATLAB?
59 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2017-2-15
编辑: MathWorks Support Team
2024-7-18
I have a neural network which I trained using MATLAB. I want to export the network so I can use it with other frameworks, for example PyTorch. How do I do that?
采纳的回答
MathWorks Support Team
2024-7-18
编辑:MathWorks Support Team
2024-7-18
You can export a Deep Learning Toolbox network or layer graph to TensorFlow and ONNX using the "exportNetworkToTensorFlow" and "exportONNXNetwork" functions, respectively. For more information about exporting networks to external deep learning platforms, please see the following documentation page:
If you want to export you network to use in another framework, such as PyTorch, you should first export your network using the "exportONNXNetwork" function then, this ONNX model can then be imported into other deep learning frameworks that support ONNX model import.
更多回答(2 个)
Maria Duarte Rosa
2018-6-25
编辑:Jon Cherrie
2023-12-21
The exportONNXNetwork function in Deep Learning Toolbox Converter for ONNX Model Format allows one to export a trained deep learning network to the ONNX™ (Open Neural Network Exchange) model format. The ONNX model can then be imported into other deep learning frameworks that support ONNX model import.
To use the network with TensorFlow, use the exportNetworkToTensorFlow function that is part of the Deep Learning Toolbox Converter for TensorFlow Models.
1 个评论
michael scheinfeild
2018-8-6
still i have no success to import it to c++ from onnx there are many issues of compilation
michael scheinfeild
2019-4-14
after testing onnx i found that the output of convolutions is not the same as in matlab .
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!