mlcommons / mlcommons/inference

[TEST01] verify_performance.py - NameError: name 'line' is not defined.

Open
#2,494 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.6k
Forks
650
Avg merge
1d 22h
Merged PRs (30d)
6

Description

https://github.com/mlcommons/inference/blob/52235a451d18c98db11dc51b89140deb8c80ecf1/compliance/TEST01/verify_performance.py#L57

On line 57, an undefined variable line is referenced causing the program to crash with the following error:

Traceback (most recent call last):
  File "/app/mlperf/mlperf_inference/compliance/TEST01/verify_performance.py", line 109, in <module>
    main()
  File "/app/mlperf/mlperf_inference/compliance/TEST01/verify_performance.py", line 84, in main
    test_scenario, test_score, test_target_latency = parse_result_log(
                                                     ^^^^^^^^^^^^^^^^^
  File "/app/mlperf/mlperf_inference/compliance/TEST01/verify_performance.py", line 57, in parse_result_log
    line.split()[0],
    ^^^^
NameError: name 'line' is not defined. Did you mean: 'slice'?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in compliance/TEST01/verify_performance.py at line 57, then read parse_result_log and its caller in main. Reproduce the failure using the TEST01 verification flow described by the traceback. Done means the undefined-variable crash is resolved and verification can continue past parse_result_log.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.