Skip to content

Commit 25d460b

Browse files
yangw-devhinriksnaer
authored andcommitted
Change debug to verbose > 2 for priting raw docments (pytorch#11963)
Signed-off-by: Yang Wang <[email protected]>
1 parent d1ab38a commit 25d460b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.ci/scripts/benchmark_tooling/analyze_benchmark_stability.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def analyze_latency_stability( # noqa: C901
7171
reference_file=None,
7272
output_dir="stability_analysis_results",
7373
verbose_level=0,
74-
debug=False,
7574
):
7675
print_section_header(f"Analyzing Stability Against Metric '{target_metric}'")
7776
print(f"Primary dataset: {primary_file}")
@@ -87,8 +86,8 @@ def analyze_latency_stability( # noqa: C901
8786
primary_datasets = {}
8887
documents = read_excel_with_json_header(primary_file)
8988

90-
if debug:
91-
print(f"[Debug Mode] Printing documents: {documents}")
89+
if verbose_level > 2:
90+
print(f"Printing documents: {documents}")
9291

9392
for document in documents:
9493
sheetName = document.get("sheetName", None)
@@ -1530,12 +1529,6 @@ def main():
15301529
help="Directory to save analysis results (default: stability_analysis_results)",
15311530
)
15321531

1533-
parser.add_argument(
1534-
"--debug",
1535-
action="store_true",
1536-
help="Enable debug mode (default: False)",
1537-
)
1538-
15391532
parser.add_argument(
15401533
"--verbose-level",
15411534
type=int,
@@ -1553,7 +1546,6 @@ def main():
15531546
args.reference_file,
15541547
args.output_dir,
15551548
args.verbose_level,
1556-
args.debug,
15571549
)
15581550

15591551

0 commit comments

Comments
 (0)