how do i convert this code to HDL using hdl coder?
4 views (last 30 days)
Show older comments
clc
clear all
warning off
imds = imageDatastore('E:\BACK UP\matlab','Includesubfolders',true,'Labelsource','foldernames')
[traindata,testdata] = splitEachLabel(imds, 0.7);
layers = [imageInputLayer([25, 25,3]);
convolution2dLayer(5,20)
reluLayer
maxPooling2dLayer(2,'Stride',2)
fullyConnectedLayer(2)
softmaxLayer
classificationLayer()];
options = trainingOptions('sgdm',...
'LearnRateSchedule', 'piecewise', ...
'LearnRateDropFactor', 0.2, ...
'LearnRateDropPeriod', 5, ...
'MaxEpoch',110,...
'MiniBatchSize', 100,...
'InitialLearnRate',0.0001,...
'Plots','training-progress');
[net,info] =trainNetwork(traindata,layers,options);
save net net;
hdlcfg.GenerateHDLTestBench = true;
0 Comments
Answers (1)
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!