forked from mindspore-Ecosystem/mindspore
!9943 Fix mass lr import
From: @linqingke Reviewed-by: @c_34,@wuxuejian Signed-off-by: @c_34
This commit is contained in:
commit
28de04fb00
|
@ -17,7 +17,9 @@ from math import ceil
|
|||
import numpy as np
|
||||
|
||||
import mindspore.nn.learning_rate_schedule as lr_schedules
|
||||
|
||||
from mindspore import Tensor
|
||||
from mindspore.ops import operations as P
|
||||
import mindspore.common.dtype as mstype
|
||||
|
||||
def square_root_schedule(lr, update_num, decay_start_step,
|
||||
warmup_steps=2000,
|
||||
|
|
Loading…
Reference in New Issue