Searched refs:valid_range (Results 1 – 2 of 2) sorted by relevance
/third_party/mindspore/mindspore/dataset/core/ |
D | validator_helpers.py | 77 def check_value(value, valid_range, arg_name="", left_open_interval=False, right_open_interval=Fals… argument 90 if value < valid_range[0] or value > valid_range[1]: 92 … "Input {0}is not within the required interval of [{1}, {2}].".format(arg_name, valid_range[0], 93 … valid_range[1])) 95 if value <= valid_range[0] or value > valid_range[1]: 97 … "Input {0}is not within the required interval of ({1}, {2}].".format(arg_name, valid_range[0], 98 … valid_range[1])) 100 if value < valid_range[0] or value >= valid_range[1]: 102 … "Input {0}is not within the required interval of [{1}, {2}).".format(arg_name, valid_range[0], 103 … valid_range[1])) [all …]
|
/third_party/mindspore/mindspore/offline_debug/ |
D | mi_validator_helpers.py | 33 def check_value(arg, valid_range, arg_name=""): argument 35 if arg < valid_range[0] or arg > valid_range[1]: 38 … valid_range[0], valid_range[1]))
|