mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
fix build bug when enabling DEBUG_GENERATION (#15338)
This commit is contained in:
parent
1251964f96
commit
0412bffbb4
1 changed files with 2 additions and 2 deletions
|
|
@ -760,8 +760,8 @@ Status GreedySearchProcessLogits(
|
|||
cuda_stream);
|
||||
|
||||
#ifdef DEBUG_GENERATION
|
||||
dumper->Print("topk_scores", greedy_state->topk_scores_buffer.data(), batch_size);
|
||||
dumper->Print("topk_indices", greedy_state->topk_tokens_buffer.data(), batch_size);
|
||||
dumper->Print("topk_scores", greedy_state->topk_scores_buffer.data(), batch_size, 1);
|
||||
dumper->Print("topk_indices", greedy_state->topk_tokens_buffer.data(), batch_size, 1);
|
||||
#endif
|
||||
|
||||
CUDA_RETURN_IF_ERROR(cudaMemcpyAsync(greedy_state->next_tokens.data(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue