Home
last modified time | relevance | path

Searched refs:weight_decay_tensor (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/tests/st/ops/graph_kernel/
Dtest_fused_adam.py47 …struct(self, beta1, beta2, one_sub_beta_1, one_sub_beta_2, gradient, eps, weight_decay_tensor, lr): argument
60 update = self.op_mul(weight_decay_tensor, param_fp32) + update
91 …struct(self, beta1, beta2, one_sub_beta_1, one_sub_beta_2, gradient, eps, weight_decay_tensor, lr): argument
106 update = self.op_mul(weight_decay_tensor, param_fp32) + update
119 def CalFusedAdam(beta1, beta2, one_sub_beta_1, one_sub_beta_2, gradient, eps, weight_decay_tensor, … argument
125 update += weight_decay_tensor * param
138 weight_decay_tensor = np.array([0.021]).astype(np.float32)
147 Tensor(weight_decay_tensor), Tensor(lr))
149 beta1, beta2, one_sub_beta_1, one_sub_beta_2, gradient, eps, weight_decay_tensor, lr,
167 weight_decay_tensor = np.array([0.021]).astype(np.float32)
[all …]
/third_party/mindspore/tests/st/ops/gpu/
Dtest_adam_fusion.py46 def construct(self, beta1, beta2, gradient, eps, weight_decay_tensor, lr): argument
58 update = self.op_mul(weight_decay_tensor, param_fp32) + update
76 weight_decay_tensor = Tensor(np.array([0.001]).astype(np.float32))
80 _ = opt(beta1, beta2, gradient, eps, weight_decay_tensor, lr)
/third_party/mindspore/tests/ut/python/ir/
Dtest_row_tensor.py161 def _update_run_op_for_map_row_tensor(beta1, beta2, eps, lr, weight_decay_tensor, param, argument
167 def _update_run_op_for_map_tensor(beta1, beta2, eps, lr, weight_decay_tensor, param, argument
188 update = update + op_mul(weight_decay_tensor, param_fp32)
221 self.weight_decay_tensor = Tensor(np.array([weight_decay]).astype(np.float32))
232 self.weight_decay_tensor),
/third_party/mindspore/mindspore/nn/optim/
Doptimizer.py183 self.weight_decay_tensor = Tensor(self.weight_decay, mstype.float32)
305 … gradients = self.map_(F.partial(_apply_decay, self.weight_decay_tensor), self.decay_flags,