주요 콘텐츠

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

MATLAB에서 PyTorch 및 LiteRT 모델에 대한 코드 생성

R2026a
MATLAB® 코드로부터 범용 C, C++ 및 기본 CUDA 코드 생성
R2026a 이후

PyTorch® ExportedProgram 또는 LiteRT 모델을 MATLAB에 불러와 범용 C/C++ 코드를 생성할 수 있습니다.

GPU Coder™ 라이선스가 있는 경우 CUDA® 코드도 생성할 수 있습니다.

함수

loadLiteRTModelLoad pretrained LiteRT model file
loadPyTorchExportedProgramLoad PyTorch ExportedProgram model file
summaryDisplay input and output specifications of PyTorch ExportedProgram or LiteRT model
inputSpecificationsReturn input specifications for functions in PyTorch ExportedProgram or LiteRT model
outputSpecificationsReturn output specifications for functions in PyTorch ExportedProgram or LiteRT model
invokeRun inference on a PyTorch ExportedProgram or LiteRT model input to compute output

객체

PyTorchExportedProgramPyTorch ExportedProgram model
LiteRTModelLiteRT model

추천 예제