Skip to content

Commit 019c1af

Browse files
committed
simply
1 parent c4923bb commit 019c1af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

graph_net/analysis_util.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,16 +507,15 @@ def get_incorrect_models(
507507
for idx, sample in enumerate(samples):
508508
if not is_correct_at_t1[idx]:
509509
current_correctness = fake_perf_degrad(tolerance, fail_type_at_t1[idx])
510-
if current_correctness != "CORRECT":
511-
failed_models.add(sample.get("model_path"))
510+
failed_models.add(
511+
sample.get("model_path")
512+
) if current_correctness != "CORRECT" else None
512513
else:
513514
iscorrect, err = check_sample_correctness(sample, tolerance)
514-
if not iscorrect:
515-
failed_models.add(sample.get("model_path"))
515+
failed_models.add(sample.get("model_path")) if not iscorrect else None
516516
else:
517517
for idx, sample in enumerate(samples):
518518
iscorrect, err = check_sample_correctness(sample, tolerance)
519-
if not iscorrect:
520-
failed_models.add(sample.get("model_path"))
519+
failed_models.add(sample.get("model_path")) if not iscorrect else None
521520

522521
return failed_models

0 commit comments

Comments
 (0)