Home
last modified time | relevance | path

Searched refs:check_number (Results 1 – 7 of 7) sorted by relevance

/third_party/mindspore/mindspore/
D_checkparam.py147 def check_number(arg_value, value, rel, arg_type=int, arg_name=None, prim_name=None): function
238 return check_number(arg_value, value, rel, int, arg_name, prim_name)
260 return check_number(arg_value, value, Rel.EQ, int, arg_name, prim_name)
271 return check_number(arg_value, 0, Rel.GT, int, arg_name, prim_name)
282 return check_number(arg_value, 0, Rel.LT, int, arg_name, prim_name)
293 return check_number(arg_value, 0, Rel.LE, int, arg_name, prim_name)
304 return check_number(arg_value, 0, Rel.GE, int, arg_name, prim_name)
314 return check_number(arg_value, value, rel, float, arg_name, prim_name)
338 return check_number(arg_value, 0, Rel.GT, float, arg_name, prim_name)
349 return check_number(arg_value, 0, Rel.LT, float, arg_name, prim_name)
[all …]
/third_party/mindspore/mindspore/nn/optim/
Dftrl.py62 validator.check_number("initial_accum", initial_accum, 0.0, Rel.GE, prim_name)
65 validator.check_number("lr_power", lr_power, 0.0, Rel.LE, prim_name)
68 validator.check_number("l1", l1, 0.0, Rel.GE, prim_name)
71 validator.check_number("l2", l2, 0.0, Rel.GE, prim_name)
/third_party/mindspore/mindspore/ops/composite/
Dclip_ops.py122 validator.check_number("clip_norm", clip_norm, 0.0, Rel.GT, self.cls_name)
138 validator.check_number("clip_norm", clip_norm, 0.0, Rel.GT, "clip_by_global_norm")
/third_party/mindspore/mindspore/ops/operations/
Drandom_ops.py708 self.num_true = Validator.check_number("num_true", num_true, 1, Rel.GE, self.name)
709 self.num_sampled = Validator.check_number("num_sampled", num_sampled, 1, Rel.GE, self.name)
710 Validator.check_number("range_max", range_max, 1, Rel.GE, self.name)
715 self.seed = Validator.check_number("seed", seed, 0, Rel.GE, self.name)
Dnn_ops.py699 validator.check_number("alpha", alpha, 1.0, Rel.EQ, self.name)
4405 validator.check_number("num_true", num_true, 1, Rel.GE, self.name)
5220 self.lr_power = validator.check_number("lr_power", lr_power, 0, Rel.LE, self.name)
7118 self.lr_power = validator.check_number("lr_power", lr_power, 0, Rel.LE, self.name)
7227 self.lr_power = validator.check_number("lr_power", lr_power, 0, Rel.LE, self.name)
8973 validator.check_number("lambd", lambd, 0, Rel.GE, self.name)
9244 self.epsilon = validator.check_number("epsilon", epsilon, 0.0, Rel.GT, self.name)
9245 self.momentum = validator.check_number("momentum", momentum, 0.0, Rel.GE, self.name)
D_grad_ops.py2247 validator.check_number("lambd", lambd, 0, Rel.GE, self.name)
/third_party/mindspore/mindspore/nn/layer/
Dimage.py262 validator.check_number('max_val', max_val, 0.0, Rel.GT, self.cls_name)
358 validator.check_number('max_val', max_val, 0.0, Rel.GT, self.cls_name)
457 validator.check_number('max_val', max_val, 0.0, Rel.GT, self.cls_name)