From 18ed481c7ef7aa7239dc49e269703b7fbbcf6753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Bredin?= Date: Wed, 7 Apr 2021 11:58:47 +0200 Subject: [PATCH] doc: fix error message --- pyannote/audio/utils/permutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyannote/audio/utils/permutation.py b/pyannote/audio/utils/permutation.py index 73e16143..7f4ab219 100644 --- a/pyannote/audio/utils/permutation.py +++ b/pyannote/audio/utils/permutation.py @@ -54,7 +54,7 @@ def permutate_torch( y2 = y2.expand(batch_size, -1, -1) if len(y2.shape) != 3: - msg = "Incorrect shape: should be (batch_size, num_frames, num_classes_1)." + msg = "Incorrect shape: should be (batch_size, num_frames, num_classes)." raise ValueError(msg) batch_size_, num_samples_, num_classes_2 = y2.shape