for (Layer l : nn.getLayers()) {
if (!Util.isBias(l)) {
if (outputCC != null && nn.getOutputLayer() == l) {
lc.addConnectionCalculator(l, outputCC);
} else if (Util.isConvolutional(l)) {
lc.addConnectionCalculator(l, new AparapiConv2DSigmoid());
} else if (!Util.isSubsampling(l)) {
lc.addConnectionCalculator(l, new AparapiSigmoid());
}
} else {
lc.addConnectionCalculator(l, new ConstantConnectionCalculator());