시작하기
R2026a 이후
MATLAB Coder Support Package for PyTorch and LiteRT Models를 사용하여 다음을 수행할 수 있습니다.
PyTorch ExportedProgram 및 LiteRT(TensorFlow Lite 또는 TFLite) 모델을 MATLAB 코드와 Simulink® 모델에 불러옵니다. YOLOv11, Whisper, DINOv2, Depth Anything, SAM2를 포함하여 사전 훈련된 다양한 딥러닝 신경망을 불러올 수 있습니다.
TensorFlow 또는 Keras 모델을 LiteRT 형식으로 변환한 후에 코드를 생성합니다.
PyTorch ExportedProgram 및 LiteRT 모델에 대해 타깃에 독립적인 C 및 C++ 코드를 생성하고 배포합니다.
GPU Coder™를 사용하여 최적화된 기본 CUDA® 코드를 생성합니다.
코드 대체 라이브러리를 사용하여 타깃 하드웨어에 맞는 프로세서 전용 내장 함수를 통합합니다.
이 지원 패키지를 얻으려면 Install MATLAB Coder Support Package for PyTorch and LiteRT Models에 설명된 단계를 수행하십시오.
함수
coder.torchSetup | Install third-party tools for PyTorch code generation |
도움말 항목
- Install MATLAB Coder Support Package for PyTorch and LiteRT Models
Install the support package and tools for code generation for PyTorch and LiteRT models.
- Prepare PyTorch Models for MATLAB and Simulink Code Generation
Export a PyTorch model as a ExportedProgram file to be loaded with loadPyTorchExportedProgram.
- Verify Numerical Consistency of a LiteRT or PyTorch ExportedProgram Model in Python
Verify numerical consistency between Python® and MATLAB.