Skip to content

Commit d4cbf44

Browse files
arizhihiThalay
authored andcommitted
whisper : fix DTW assert (ggml-org#2299)
1 parent 37be989 commit d4cbf44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/whisper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7220,9 +7220,10 @@ struct median_filter_user_data {
72207220
};
72217221

72227222
static void median_filter(struct ggml_tensor * dst , const struct ggml_tensor * a, int ith, int nth, void * userdata) {
7223+
if (ith != 0) {
7224+
return;
7225+
}
72237226
int filter_width = ((median_filter_user_data *) userdata)->filter_width;
7224-
WHISPER_ASSERT(nth == 1);
7225-
WHISPER_ASSERT(ith == 0);
72267227
WHISPER_ASSERT(filter_width < a->ne[2]);
72277228
WHISPER_ASSERT(filter_width % 2);
72287229
WHISPER_ASSERT(ggml_n_dims(a) == 3);

0 commit comments

Comments
 (0)