Condense the number of layers