Skip to content

Commit

Permalink
Make debug logging more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusMattinen committed Apr 27, 2023
1 parent ece03df commit 24dbf70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4349,11 +4349,11 @@ int whisper_full_with_state(
prompt.insert(prompt.end(), prompt_init.begin(), prompt_init.end());

// print the prompt
WHISPER_PRINT_DEBUG("\n\n");
WHISPER_PRINT_DEBUG("%s: prompt = ", __func__);
for (int i = 0; i < (int) prompt.size(); i++) {
WHISPER_PRINT_DEBUG("%s: prompt[%d] = %s\n", __func__, i, ctx->vocab.id_to_token.at(prompt[i]).c_str());
WHISPER_PRINT_DEBUG("%s", ctx->vocab.id_to_token.at(prompt[i]).c_str());
}
WHISPER_PRINT_DEBUG("\n\n");
WHISPER_PRINT_DEBUG("\n");

if (!whisper_decode_internal(*ctx, *state, state->decoders[0], prompt.data(), prompt.size(), 0, params.n_threads)) {
fprintf(stderr, "%s: failed to decode\n", __func__);
Expand Down

0 comments on commit 24dbf70

Please sign in to comment.