nd',6,'outInd',7,'nOutChannels',500,'bias_filler',0), ...
    struct('type','relu','inInd',7,'outInd',7),  ...
    struct('type','affine','inInd',7,'outInd',8,'nOutChannels',10,'bias_filler',0), ...
    struct('type','loss','inInd',[8 2],'outInd',10,'lossType','MCLogLoss') };

%% initialize a network class

cnn = ConvNet(lenet,atGPU,'Orthogonal');

%% For debugging purposes, show some images
x = cnn.net{1}.data.get(1); y = cnn.net{2}.data.get(1); [~,bla] = max(y);
figure; for i=1:25, subplot(5,5,i); imagesc