Layerwise curriculum learning