We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317835e commit d9ebbd3Copy full SHA for d9ebbd3
test/torchaudio_unittest/functional/torchscript_consistency_impl.py
@@ -547,3 +547,14 @@ def func(tensor):
547
548
tensor = common_utils.get_whitenoise(sample_rate=44100)
549
self._assert_consistency(func, tensor)
550
+
551
+ def test_compute_kaldi_pitch(self):
552
+ if self.dtype != torch.float32 or self.device != torch.device('cpu'):
553
+ raise unittest.SkipTest("Only float32, cpu is supported.")
554
555
+ def func(tensor):
556
+ sample_rate: float = 44100.
557
+ return F.compute_kaldi_pitch(tensor, sample_rate)
558
559
+ tensor = common_utils.get_whitenoise(sample_rate=44100)
560
+ self._assert_consistency(func, tensor)
0 commit comments