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