class_docstr: Test class for `SignalDistortionRatio` metric.
class_docstr_tok: ["Test","class","for","`","SignalDistortionRatio","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_sdr_half_gpu(self, preds, target, ref_metric):
      """Test dtype support of the metric on GPU."""
      self.run_precision_test_gpu(
          preds=preds,
          target=target,
          metric_module=SignalDistortionRatio,
          metric_functional=signal_distortion_ratio,
          metric_args={},
      )
  
imports: from functools import partial
  from typing import Callable
  import numpy
  import pytest
  import torch
  from mir_eval.separation import bss_eval_sources
  from scipy.io import wavfile
  from torch import Tensor
  from torchmetrics.audio import SignalDistortionRatio
  from torchmetrics.functional import signal_distortion_ratio
  from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_11
  from unittests import _Input
  from unittests.audio import _SAMPLE_AUDIO_SPEECH, _SAMPLE_AUDIO_SPEECH_BAB_DB, _SAMPLE_NUMPY_ISSUE_895
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 5 for calling the TestSDR obj's underlying member method code with example usage: obj.test_sdr_half_gpu(preds, target, ref_metric) without return types