how do i convert this code to HDL using hdl coder?

4 visualizzazioni (ultimi 30 giorni)
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;

Risposte (1)

Kiran Kintali
Kiran Kintali il 29 Dic 2022
You can follow these examples in Deep Learning HDL Toolbox.

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by