필터 지우기
필터 지우기

Loading .pt file into matlab

조회 수: 65 (최근 30일)
Bao Ngo
Bao Ngo 2022년 4월 19일
답변: Sivylla Paraskevopoulou 2022년 10월 7일
Hi I have a .pt file containing a list of tensors like the picture below. I want to ask how can I load these tensors into Matlab? (P/s: I get these tensors after performing VGG11 on Pytorch) I am also trying to save it as an onnx file but when I load it to Matlab, I got an error.

답변 (1개)

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou 2022년 10월 7일
In R2022b we introduced the Deep Learning Toolbox Converter for PyTorch Models support package. This initial release supports importing image classification models. Support for other model types will be added in future releases. Use the function importNetworkFromPyTorch to import a PyTorch model. Make sure that the PyTorch model that you are importing is pretrained and traced.
For more details, check out the blog post What’s New in Interoperability with TensorFlow and PyTorch and the importNetworkFromPyTorch documentation page.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by