Fix return type

This commit is contained in:
Daniel Povey 2022-07-15 14:18:07 +08:00
parent 68c5935691
commit 4c8d77d14a

View File

@ -513,7 +513,7 @@ param_rms_smooth1: Smoothing proportion for parameter matrix, if assumed rank of
def _is_lr_update_step(self, def _is_lr_update_step(self,
group: dict, group: dict,
state: dict) -> False: state: dict) -> bool:
""" """
Returns True if on this step we need to update the learning-rate matrices for this tensor Returns True if on this step we need to update the learning-rate matrices for this tensor
and False if not. The periodicity with which we update them increases from and False if not. The periodicity with which we update them increases from
@ -534,7 +534,6 @@ param_rms_smooth1: Smoothing proportion for parameter matrix, if assumed rank of
return (step >= zero_step + cur_update_period) return (step >= zero_step + cur_update_period)
def _update_lrs(self, def _update_lrs(self,
group: dict, group: dict,
p: Tensor, p: Tensor,