Where did the fully connected layer appear in the example if it was not present in the network conf

74 views
Skip to first unread message

nitr...@gmail.com

unread,
Apr 4, 2017, 1:13:51 AM4/4/17
to convnetjs
Where did the fully connected layer appear in the example if it was not present in the network configuration?

Don

unread,
Apr 4, 2017, 1:24:51 AM4/4/17
to convnetjs
config net :

layer_defs = [];
layer_defs.push({type:'input', out_sx:24, out_sy:24, out_depth:1});
layer_defs.push({type:'conv', sx:5, filters:8, stride:1, pad:2, activation:'relu'});
layer_defs.push({type:'pool', sx:2, stride:2});
layer_defs.push({type:'conv', sx:5, filters:16, stride:1, pad:2, activation:'relu'});
layer_defs.push({type:'pool', sx:3, stride:3});
layer_defs.push({type:'softmax', num_classes:10});

fc-layer not preset
but in output :

fc (1x1x10)
max activation: 0.63307, min: -1.35983
max gradient: 0.21196, min: -0.89718
parameters: 10x256+10 = 2570
Activations:
softmax (1x1x10)


and two question:

how make two fc-layer to one softmaxlayer?

1530...@qq.com

unread,
Apr 11, 2017, 7:40:45 AM4/11/17
to convnetjs
在 2017年4月4日星期二 UTC+8下午1:13:51,Don写道:
> Where did the fully connected layer appear in the example if it was not present in the network configuration?

Reading through the code you'll easily find out that a fc layer is always automatically prepended before the softmax layer.

Don

unread,
Apr 16, 2017, 9:50:21 AM4/16/17
to convnetjs
Thanks for the answer i understood

вторник, 4 апреля 2017 г., 8:13:51 UTC+3 пользователь Don написал:
Reply all
Reply to author
Forward
0 new messages