class_docstr: Test class for `PearsonCorrCoef` metric.
class_docstr_tok: ["Test","class","for","`","PearsonCorrCoef","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_pearson_corrcoef_half_gpu(self, preds, target):
      """Test dtype support of the metric on GPU."""
      num_outputs = EXTRA_DIM if preds.ndim == 3 else 1
      self.run_precision_test_gpu(
          preds,
          target,
          partial(PearsonCorrCoef, num_outputs=num_outputs),
          pearson_corrcoef,
      )
  
imports: from functools import partial
  import pytest
  import torch
  from scipy.stats import pearsonr
  from torchmetrics.functional.regression.pearson import pearson_corrcoef
  from torchmetrics.regression.pearson import PearsonCorrCoef, _final_aggregation
  from unittests import BATCH_SIZE, EXTRA_DIM, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 5 for calling the TestPearsonCorrCoef obj's underlying member method code with example usage: obj.test_pearson_corrcoef_half_gpu(preds, target) without return types