Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xufang-lisa committed Dec 20, 2024
1 parent a81fc82 commit 60722e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cpp/text_generation/greedy_causal_lm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int main(int argc, char* argv[]) try {
int iter = 0;
while (iter < 10) {
auto result = pipe.generate(prompt, config);
std::cout << result.texts << std::endl;
std::cout << result.texts[0] << std::endl;
iter++;
std::cout << "\n pipeline generate finish iter:" << iter << std::endl;
std::cout << "generate duration s:" << result.perf_metrics.get_generate_duration().mean * 0.001 << std::endl;
Expand Down

0 comments on commit 60722e2

Please sign in to comment.