Quantize allocated its result buffer from the input shape but only ever filled three channels, so a 4 channel image raised a RuntimeError. Quantize the colour channels and carry the original alpha through untouched. CORE-393