Home
last modified time | relevance | path

Searched refs:valid_range (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/dataset/core/
Dvalidator_helpers.py77 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],
93valid_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],
98valid_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],
103valid_range[1]))
[all …]
/third_party/mindspore/mindspore/offline_debug/
Dmi_validator_helpers.py33 def check_value(arg, valid_range, arg_name=""): argument
35 if arg < valid_range[0] or arg > valid_range[1]:
38valid_range[0], valid_range[1]))