From f695177706cdc820db3cade6185611f148b900aa Mon Sep 17 00:00:00 2001 From: Hyunjae Woo Date: Fri, 20 Oct 2023 16:33:29 -0700 Subject: [PATCH] Minor fix --- src/c++/perf_analyzer/docs/examples/profile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/c++/perf_analyzer/docs/examples/profile.py b/src/c++/perf_analyzer/docs/examples/profile.py index 94b275f00..784a435ae 100644 --- a/src/c++/perf_analyzer/docs/examples/profile.py +++ b/src/c++/perf_analyzer/docs/examples/profile.py @@ -269,9 +269,7 @@ def generate_prompts(args, input_data): prompt = input_data["data"][0]["PROMPT"][0] if not prompt: # Generate dummy prompt - assert ( - args.prompt_size_range - ), "Must specify --prompt-size-range if prompt is not provided." + assert args.prompt_size_range, "Must specify --prompt-size-range." start, end, step = args.prompt_size_range return [" ".join(["hi"] * size) for size in range(start, end + 1, step)] return [prompt]