How To Import PyTorch Models in MATLAB @MATLAB
How To Import PyTorch Models in MATLAB  @MATLAB
Uploaded October 2025 | Updated November 2026, 2 hours ago
You can train neural networks in MATLAB, but sometimes you already have a trained network in PyTorch that you just want to import and use with MATLAB code, apps, or features. Learn how you can accomplish this with MATLAB code or by using the Deep Network Designer app.

This video uses the following products:
- MATLAB
- Deep Learning Toolbox
- Deep Learning Toolbox Converter for PyTorch Models support package

Related Resources:
- Learn more about importing programmatically: bit.ly/41OicTn
- Learn more about importing using Deep Network Designer: bit.ly/429Ddrr
- Documentation for the trace function in PyTorch: bit.ly/4vm3kZ6
- Learn more about importing pretrained networks from external platforms: bit.ly/4njk136

Chapters
0:00 Introduction
0:55 Import with MATLAB Code
2:15 Using an imported model
3:18 Import with Deep Network Designer
4:31 Conclusion
--------------------------------------------------------------------------------------------------------
Get a free product trial: goo.gl/ZHFb5u
Learn more about MATLAB: goo.gl/8QV7ZZ
Learn more about Simulink: goo.gl/nqnbLe
See what's new in MATLAB and Simulink: goo.gl/pgGtod

© 2025 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.
See mathworks.com/trademarks for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.
How To Import PyTorch Models in MATLABWhat Is Sensor Fusion and Tracking Toolbox?What Is Bioinformatics Toolbox?What is the MATLAB Agentic Toolkit?Embedded AI in Engineered Systems with MATLAB and SimulinkHow to Configure DIOs as Inputs | Support Package for Renesas RH850 MCUs, Part 3Trace AI Agents in MATLAB with OpenTelemetryWhat Is Radar Toolbox?What Is Simulink Variant Manager?Connect Simulink to Agentic AIHow to Use Python Code in SimulinkUsing SIR Epidemic Modeling and Control to Teach Process Dynamics and Control to Chemical Engineers
MATLAB |

How To Import PyTorch Models in MATLAB

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER