Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return with error from whisper_encode_internal and whisper_decode_int… #1456

Merged
merged 1 commit into from Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions whisper.cpp
Expand Up @@ -2027,7 +2027,7 @@ static bool whisper_encode_internal(
wstate.t_encode_us += ggml_time_us() - t_start_us;
wstate.n_encode++;

return true;
return !(abort_callback && abort_callback(abort_callback_data));
}

static struct ggml_cgraph * whisper_build_graph_decoder(
Expand Down Expand Up @@ -2447,7 +2447,7 @@ static bool whisper_decode_internal(
wstate.n_prompt++;
}

return true;
return !(abort_callback && abort_callback(abort_callback_data));
}


Expand Down