Skip to content

Commit 38663f6

Browse files
committed
Add comments
1 parent 5511fb2 commit 38663f6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sharktuner/dispatch_tuner/dispatch_tuner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ def main() -> None:
160160
print("Check the summary in:")
161161
print(summary_log_file.resolve())
162162

163-
output_csv_name = (
164-
f"tuning_{args.dispatch_file.stem}.csv"
165-
)
163+
output_csv_name = f"tuning_{args.dispatch_file.stem}.csv"
166164
csv_path = libtuner.candidate_ordering.export_record_to_csv(
167165
dispatch_tuner.tuning_records, path_config.base_dir, output_csv_name
168166
)

sharktuner/sharktuner/candidate_ordering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def reorder_assignments(
113113

114114
@dataclass
115115
class TuningRecord:
116-
gen_id: int
117-
candidate_id: int
116+
gen_id: int # Original index from candidate generation.
117+
candidate_id: int # Index in candidate_trackers after sorting.
118118
knob: Optional[common.KnobAssignment] = None
119119
to_compile: bool = False
120120
compile_status: bool = False

0 commit comments

Comments
 (0)