When quantizing tensors during model creation validate that the resulting sizes match what is expected based on the shape.