class_docstr: Test class for `LearnedPerceptualImagePatchSimilarity` metric.
class_docstr_tok: ["Test","class","for","`","LearnedPerceptualImagePatchSimilarity","`","metric","."]
docstr: Test for half + cpu support.
docstr_tok: ["Test","for","half","+","cpu","support","."]
code: def test_lpips_half_cpu(self):
      """Test for half + cpu support."""
      self.run_precision_test_cpu(
          _inputs.img1,
          _inputs.img2,
          LearnedPerceptualImagePatchSimilarity,
      )
  
imports: from functools import partial
  from typing import NamedTuple
  import pytest
  import torch
  from lpips import LPIPS
  from torch import Tensor
  from torchmetrics.functional.image.lpips import learned_perceptual_image_patch_similarity
  from torchmetrics.image.lpip import LearnedPerceptualImagePatchSimilarity
  from torchmetrics.utilities.imports import _LPIPS_AVAILABLE, _TORCHVISION_AVAILABLE
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 4 for calling the TestLPIPS obj's underlying member method code with example usage: obj.test_lpips_half_cpu() without return types