Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
corehalt committed Jul 13, 2022
1 parent 5dd9ed7 commit d1c2635
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions compliance/nvidia/TEST01/verify_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def main():
continue

if ref_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
continue

if ref_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
continue

Expand Down Expand Up @@ -89,12 +89,12 @@ def main():
continue

if test_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
continue

if test_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
continue

Expand Down
8 changes: 4 additions & 4 deletions compliance/nvidia/TEST04/verify_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def main():
continue

if ref_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
ref_score = 1e9 / float(ref_score)
continue

if ref_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
ref_score = 1e9 / float(ref_score)
continue
Expand Down Expand Up @@ -90,13 +90,13 @@ def main():
continue

if test_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
test_score = 1e9 / float(test_score)
continue

if test_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
test_score = 1e9 / float(test_score)
continue
Expand Down
8 changes: 4 additions & 4 deletions compliance/nvidia/TEST05/verify_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def main():
continue

if ref_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
continue

if ref_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
ref_score = line.split(": ",1)[1].strip()
continue

Expand Down Expand Up @@ -89,12 +89,12 @@ def main():
continue

if test_mode == "SingleStream":
if re.match("Early stopping 90th percentile estimate", line):
if re.match(".*Early stopping 90th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
continue

if test_mode == "MultiStream":
if re.match("Early stopping 99th percentile estimate", line):
if re.match(".*Early stopping 99th percentile estimate", line):
test_score = line.split(": ",1)[1].strip()
continue

Expand Down

0 comments on commit d1c2635

Please sign in to comment.