mlcommons / mlcommons/inference
[TEST01] verify_performance.py - NameError: name 'line' is not defined.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 650
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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