Replaced chunkSizes with inputSizes.