Skip to content

Commit

Permalink
fix first few bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Caozhou1995 committed Dec 25, 2023
1 parent fc566f4 commit c0a15b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/distributed/auto_tuner/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_best(self, metric, direction, mode=None) -> Tuple[dict, bool]:
or best_cfg["time"] == -1
):
return (best_cfg, True)
first_few = 1
first_few = 0
for cfg in self.history:
if (
not isinstance(cfg["max_mem_usage"], str)
Expand Down

0 comments on commit c0a15b2

Please # to comment.