Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
fix optimize_mode issue (#3731)
Browse files Browse the repository at this point in the history
Co-authored-by: Lijiao <Lijiaoa@outlook.com>
  • Loading branch information
Lijiaoa and Lijiao authored Jun 8, 2021
1 parent b11a4c3 commit 700026c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/webui/src/static/model/experiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class Experiment {

get optimizeMode(): string {
for (const algo of [this.config.tuner, this.config.advisor, this.config.assessor]) {
if (algo && algo.classArgs && algo.classArgs['optimizeMode']) {
return algo.classArgs['optimizeMode'];
if (algo && algo.classArgs && algo.classArgs['optimize_mode']) {
return algo.classArgs['optimize_mode'];
}
}
return 'unknown';
Expand Down

0 comments on commit 700026c

Please sign in to comment.