Home
last modified time | relevance | path

Searched refs:decay_rate (Results 1 – 9 of 9) sorted by relevance

/third_party/mindspore/mindspore/nn/
Dlearning_rate_schedule.py48 def _check_inputs(learning_rate, decay_rate, decay_steps, is_stair, cls_name): argument
52 validator.check_positive_float(decay_rate, 'decay_rate', cls_name)
53 validator.check_is_float(decay_rate, 'decay_rate', cls_name)
107 def __init__(self, learning_rate, decay_rate, decay_steps, is_stair=False): argument
109 _check_inputs(learning_rate, decay_rate, decay_steps, is_stair, self.cls_name)
111 self.decay_rate = decay_rate
121 return self.learning_rate * self.pow(self.decay_rate, p)
174 def __init__(self, learning_rate, decay_rate, decay_steps, is_stair=False): argument
176 _check_inputs(learning_rate, decay_rate, decay_steps, is_stair, self.cls_name)
178 self.decay_rate = decay_rate
[all …]
Ddynamic_lr.py65 def _check_inputs(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_stair): argument
71 validator.check_positive_float(decay_rate, 'decay_rate')
72 validator.check_is_float(decay_rate, 'decay_rate')
76 def exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_sta… argument
108 _check_inputs(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_stair)
113 … lr.append(learning_rate * decay_rate ** math.floor(math.floor(i / step_per_epoch) / decay_epoch))
115 lr.append(learning_rate * decay_rate ** (math.floor(i / step_per_epoch) / decay_epoch))
119 def natural_exp_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_sta… argument
151 _check_inputs(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_stair)
159 …lr.append(learning_rate * math.e ** (-decay_rate * function(math.floor(i / step_per_epoch), decay_…
[all …]
/third_party/mindspore/tests/ut/python/nn/
Dtest_dynamic_lr.py24 decay_rate = 0.9 variable
61 dr.exponential_decay_lr(lr, decay_rate, total_step, step_per_epoch, decay_epoch)
69 dr.exponential_decay_lr(lr, decay_rate, total_step, step_per_epoch, decay_epoch)
97 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step1, step_per_epoch, decay_epoch)
108 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step1, step_per_epoch, decay_epoch)
119 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch1, decay_epoch)
130 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch1, decay_epoch)
141 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch1)
152 … dr.exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch1)
163 …dr.exponential_decay_lr(learning_rate, decay_rate, total_step, step_per_epoch, decay_epoch, is_sta…
[all …]
Dtest_learning_rate_schedule.py26 decay_rate = 0.9 variable
39 lr_schedules.ExponentialDecayLR(lr, decay_rate, decay_steps)
47 lr_schedules.ExponentialDecayLR(lr, decay_rate, decay_steps)
75 lr_schedules.ExponentialDecayLR(learning_rate, decay_rate, decay_steps_e)
86 lr_schedules.ExponentialDecayLR(learning_rate, decay_rate, decay_steps_e)
97 lr_schedules.ExponentialDecayLR(learning_rate, decay_rate, decay_steps, is_stair)
126 lr_schedule = lr_schedules.ExponentialDecayLR(learning_rate, decay_rate, decay_steps, True)
131 lr_schedule = lr_schedules.NaturalExpDecayLR(learning_rate, decay_rate, decay_steps, True)
136 lr_schedule = lr_schedules.InverseDecayLR(learning_rate, decay_rate, decay_steps, True)
/third_party/mindspore/mindspore/nn/optim/
Dadafactor.py68 def _run_opt_with_one_number(eps, clip_threshold, decay_rate, beta1, argument
110 beta2t = 1.0 - P.Pow()(step, decay_rate)
293 decay_rate=0.8, argument
327 validator.check_value_type("decay_rate", decay_rate, [float], self.cls_name)
328 validator.check_float_range(decay_rate, 0, 1, Rel.INC_NEITHER, "decay_rate", self.cls_name)
337 self.decay_rate = trans_to_tensor(-decay_rate)
409 … success = self.hyper_map(F.partial(_adam_opt, self.eps, self.clip_threshold, self.decay_rate,
/third_party/mindspore/tests/st/model_zoo_tests/yolov3/
Dtest_yolov3.py40 def get_lr(learning_rate, start_step, global_step, decay_step, decay_rate, steps=False): argument
45 lr_each_step.append(learning_rate * (decay_rate ** (i // decay_step)))
47 lr_each_step.append(learning_rate * (decay_rate ** (i / decay_step)))
127 decay_step=1000, decay_rate=0.95, steps=True))
/third_party/ffmpeg/libavfilter/
Daf_mcompand.c71 double *decay_rate; member
116 av_freep(&s->bands[i].decay_rate); in uninit()
174 cb->volume[ch] += delta * cb->decay_rate[ch]; in update_volume()
385 s->bands[i].decay_rate = av_calloc(outlink->channels, sizeof(double)); in config_output()
393 sscanf(tstr3, "%lf", &s->bands[i].decay_rate[k]); in config_output()
401 if (s->bands[i].decay_rate[k] > 1.0 / outlink->sample_rate) { in config_output()
402 … s->bands[i].decay_rate[k] = 1.0 - exp(-1.0 / (outlink->sample_rate * s->bands[i].decay_rate[k])); in config_output()
404 s->bands[i].decay_rate[k] = 1.0; in config_output()
410 s->bands[i].decay_rate[ch] = s->bands[i].decay_rate[k - 1]; in config_output()
/third_party/mindspore/tests/st/model_zoo_tests/yolov3_darknet53/
Dtest_yolov3_darknet53.py44 def get_lr(learning_rate, start_step, global_step, decay_step, decay_rate, steps=False): argument
49 lr_each_step.append(learning_rate * (decay_rate ** (i // decay_step)))
51 lr_each_step.append(learning_rate * (decay_rate ** (i / decay_step)))
/third_party/mindspore/tests/st/networks/models/resnet50/
Dtest_resnet50_imagenet.py76 def get_thor_damping(global_step, damping_init, decay_rate, total_epochs, steps_per_epoch): argument
82 damping_here = damping_init * (decay_rate ** (epoch / 10))