def METHOD_NAME(self):
    """Test for half + cpu support."""
    if not _TORCH_GREATER_EQUAL_1_9:
        pytest.xfail(reason="LPIPS metric does not support cpu + half precision for v1.8.1 or lower of Pytorch")
    self.run_precision_test_cpu(_inputs.img1, _inputs.img2, LearnedPerceptualImagePatchSimilarity)