주요 콘텐츠

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

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 ExportedProgam 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

추천 예제