Class-wise Thresholding for Detecting Out-of-Distribution Data