Skip to content

Commit

Permalink
Fix filepath access bug when None (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
debermudez authored and dyastremsky committed Jun 29, 2024
1 parent 9feb4be commit 76892ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/c++/perf_analyzer/genai-perf/genai_perf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ def create_artifacts_dirs(args: Namespace) -> None:

def generate_inputs(args: Namespace, tokenizer: Tokenizer) -> None:
# TODO (TMA-1759): review if add_model_name is always true
filepath, _ = args.input_file
input_filename = Path(filepath) if filepath else None
if args.input_file:
filepath, _ = args.input_file
input_filename = Path(filepath)
else:
input_filename = None
add_model_name = True
try:
extra_input_dict = parser.get_extra_inputs_as_dict(args)
Expand Down

0 comments on commit 76892ce

Please sign in to comment.