fix build bug when enabling DEBUG_GENERATION (#15338)

This commit is contained in:
Ye Wang 2023-04-04 09:44:07 -07:00 committed by GitHub
parent 1251964f96
commit 0412bffbb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),