if (!Util.isBias(l)) {
if (nn.getOutputLayer() == l) {
if (outputCC != null) {
lc.addConnectionCalculator(l, outputCC);
} else {
AparapiReLU c = new AparapiReLU();
c.addActivationFunction(new SoftmaxFunction());
lc.addConnectionCalculator(l, c);
}
} else if (Util.isConvolutional(l)) {
lc.addConnectionCalculator(l, new AparapiConv2DReLU());
} else {
lc.addConnectionCalculator(l, new AparapiReLU());
}
} else {
lc.addConnectionCalculator(l, new ConstantConnectionCalculator());
}
}