I found a work around is by config Bitmap to not use the HARDWARE.
        val mutableBitmap = bitmap.copy(Bitmap.Config.RGBA_F16, true)

        inputTensor = TensorImageUtils.bitmapToFloat32Tensor(
            mutableBitmap,
            TensorImageUtils.TORCHVISION_NORM_MEAN_RGB,
            TensorImageUtils.TORCHVISION_NORM_STD_RGB
        )

Even though, this work around work, I would like to know if we can preserve the HARDWARE config since it’s provide more benefits with later Android version.