mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix return type
This commit is contained in:
parent
68c5935691
commit
4c8d77d14a
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user