const reference for layerSizes