class_docstr: Test pairwise implementations.
class_docstr_tok: ["Test","pairwise","implementations","."]
docstr: Test half precision support on gpu.
docstr_tok: ["Test","half","precision","support","on","gpu","."]
code: def test_pairwise_half_gpu(
      self, x, y, metric_functional, sk_fn, reduction
  ):
      """Test half precision support on gpu."""
      self.run_precision_test_gpu(
          x,
          y,
          None,
          metric_functional,
          metric_args={"reduction": reduction},
      )
  
file_path: torchmetrics/tests/unittests/pairwise/test_pairwise_distance.py
imports: from functools import partial
  from typing import NamedTuple
  import pytest
  import torch
  from sklearn.metrics.pairwise import cosine_similarity, euclidean_distances, linear_kernel, manhattan_distances, pairwise_distances
  from torch import Tensor
  from torchmetrics.functional import pairwise_cosine_similarity, pairwise_euclidean_distance, pairwise_linear_similarity, pairwise_manhattan_distance, pairwise_minkowski_distance
  from unittests import BATCH_SIZE, NUM_BATCHES
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 3 for calling the TestPairwise obj's underlying member method code with example usage: obj.test_pairwise_half_gpu(x, y, metric_functional, sk_fn, reduction) without return types