!3415 fix bug of group lr

Merge pull request !3415 from wangnan39/fix_bug_of_tuple_lr_in_optimizer
This commit is contained in:
mindspore-ci-bot 2020-07-24 17:05:34 +08:00 committed by Gitee
commit 20cb5eec66
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Optimizer(Cell):
if self.dynamic_lr:
self.learning_rate = CellList(self.group_lr)
else:
self.learning_rate = tuple(self.group_lr)
self.learning_rate = ParameterTuple(self.group_lr)
else:
self.learning_rate = self._build_single_lr(learning_rate, 'learning_rate')
if self.is_group: