Skip to content

Commit

Permalink
fix optimizer pararmeter issue (#7322)
Browse files Browse the repository at this point in the history
Fixes # .

### Description

A few sentences describing the changes proposed in this pull request.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: binliu <binliu@nvidia.com>
  • Loading branch information
binliunls authored Dec 15, 2023
1 parent 4c546b3 commit 01a0ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/handlers/mlflow_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _default_iteration_log(self, engine: Engine) -> None:
cur_optimizer = engine.optimizer
for param_name in self.optimizer_param_names:
params = {
f"{param_name} group_{i}": float(param_group[param_name])
f"{param_name}_group_{i}": float(param_group[param_name])
for i, param_group in enumerate(cur_optimizer.param_groups)
}
self._log_metrics(params, step=engine.state.iteration)
Expand Down

0 comments on commit 01a0ee1

Please sign in to comment.