CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

DenseLayer not returning vector but scalar

Open madingo87 opened this issue 9 years ago • 0 comments

I want to output my last hiddenlayer (denselayer) of my Convolutional NN which is using ImageReader ... It works fine while training etc, but when i look at the output file there are not the vectors of the denseLayer but only scalars. Here is my script-snippet:

model = Sequential ( ConvolutionalLayer {16, (5:5), pad = true} : ... MaxPoolingLayer {(3:3), stride=(2:2)} ) cnnOut = model(features) L1 = DenseLayer{64, activation=ReLU} (cnnOut) # this is the vector i want to output out = LinearLayer($labelDim$) (L1) ... outputNodes = (L1:out)

Maybe this is a dumb question or i missed something, but why am i getting only one value per testImage in L1? I was expecting a vector of 64 values...

Any help appreciated!

madingo87 avatar Dec 07 '16 17:12 madingo87