viable/strict/1788852547: Fix extract_scripts step-index zero-padding off-by-one (#187731)
- PyTorch 近 90 天出现 653 次
- PyTorch 近 90 天第 644 次发版
- 上一次:同一天稍早 · ciflow/trunk/196278: [inductor] Type AOTI eager metadata as object
发生了什么
extract_scripts.py numbers each extracted step with a 1-based index ( enumerate(steps, start=1) ), so the indices run 1..len(steps) . The zero-pad width, however, is computed from len(steps) - 1 : index_chars = len ( str ( len ( steps ) - 1 )) for i , step in enumerate ( steps , start = 1 ): ... filename = f" { i :0{ index_chars } } { sanitized } { extension } " When a job has exactly a power-of-ten number of steps…
摘要按规则整理自下方来源原文