Commit c179e3c
committed
[AutoTuner] Replace failed metric string "-" with ERROR_METRIC
When AutoTuner trials fail, sub-metrics (effective_clk_period, num_drc,
die_area) were returned as the string "-". This caused TensorBoard
HPARAMS to silently drop entire metric columns because of mixed
string/numeric data types across trials.
Replace "-" with ERROR_METRIC (9e99) in all error return paths so
TensorBoard consistently receives numeric values. Also add the missing
die_area key in AutoTunerBase.step() invalid config return to match the
success path.
Fixes #3482
Signed-off-by: Harsh Kumar <harshkumar3446@gmail.com>1 parent 2b00536 commit c179e3c
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| |||
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | | - | |
| 250 | + | |
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments