class_docstr: Test class for `StructuralSimilarityIndexMeasure` metric.
class_docstr_tok: ["Test","class","for","`","StructuralSimilarityIndexMeasure","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_ssim_half_gpu(self, preds, target, sigma):
      """Test dtype support of the metric on GPU."""
      self.run_precision_test_gpu(
          preds,
          target,
          StructuralSimilarityIndexMeasure,
          structural_similarity_index_measure,
          {"data_range": 1.0},
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from pytorch_msssim import ssim
  from skimage.metrics import structural_similarity
  from torch import Tensor
  from torchmetrics.functional import structural_similarity_index_measure
  from torchmetrics.image import StructuralSimilarityIndexMeasure
  from unittests import NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 7 for calling the TestSSIM obj's underlying member method code with example usage: obj.test_ssim_half_gpu(preds, target, sigma) without return types