How To Import PyTorch Models in MATLAB @MATLAB
How To Import PyTorch Models in MATLAB  @MATLAB
Uploaded October 2025 | Updated September 2026, 2 weeks 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?Using Fast Implementations for Variable Frequency Pulse Generation | Simscape Electrical ModelingWhat Is Bioinformatics Toolbox?Using Generative AI with MATLAB: Calling LLMs Directly from MATLABWhat Is System Composer?What is the MATLAB Agentic Toolkit?Activity Diagrams for Model-Based Systems Engineering (MBSE)Embedded AI in Engineered Systems with MATLAB and SimulinkWhich Solver to Use for Electrical System Simulation? | Simscape Electrical Modeling PracticesHow to Configure DIOs as Inputs | Support Package for Renesas RH850 MCUs, Part 3What Is Simulink Test?
MATLAB |

How To Import PyTorch Models in MATLAB

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER