how to compile pretrained networks?

조회 수: 1 (최근 30일)
Daniel Vieira
Daniel Vieira 2017년 10월 27일
I have a code like this:
function results=myNet(filename)
load(filename) %loads data from mat file
load('net.mat')
X=.... %simple math to correctly format the data for the network
results=sim(net,X);
end
I'm trying to compile this. On the compiler app, I selected myNet as the main file, and added the 'net.mat' file as a necessary file. then I open the cmd window, go to the 'for test' folder, and call the function:
myNet data.mat > answer.txt
it should create the answer.txt file with my results, but it creates an empty file. when running everything inside MATLAB it works just fine. I tried 5 variations of the code (different syntaxes to apply net, different definitions of the function input, tried to save the result from the code instead of the cmd), nothing worked. Any idea what am I doing wrong?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by