/third_party/mindspore/mindspore/ops/operations/ |
D | sponge_ops.py | 25 from ..._checkparam import Validator as validator unknown 76 validator.check_value_type('bond_numbers', bond_numbers, int, self.name) 77 validator.check_value_type('atom_numbers', atom_numbers, int, self.name) 89 validator.check_int(len(uint_crd_f_shape), 2, Rel.EQ, "uint_crd_f_dim", cls_name) 90 validator.check_int(len(scaler_f_shape), 1, Rel.EQ, "scaler_f_dim", cls_name) 91 validator.check_int(len(atom_a_shape), 1, Rel.EQ, "atom_a_dim", cls_name) 92 validator.check_int(len(atom_b_shape), 1, Rel.EQ, "atom_b_dim", cls_name) 93 validator.check_int(len(bond_k_shape), 1, Rel.EQ, "bond_k_dim", cls_name) 94 validator.check_int(len(bond_r0_shape), 1, Rel.EQ, "bond_r0_dim", cls_name) 95 validator.check_int(uint_crd_f_shape[0], n, Rel.EQ, "uint_crd_f_shape[0]", cls_name) [all …]
|
D | sponge_update_ops.py | 23 from ..._checkparam import Validator as validator unknown 59 validator.check_value_type('atom_numbers', atom_numbers, int, self.name) 60 … validator.check_value_type('half_exp_gamma_plus_half', half_exp_gamma_plus_half, float, self.name) 72 validator.check_int(len(crd_shape), 2, Rel.EQ, "crd_dim", cls_name) 73 validator.check_int(len(quarter_cof_shape), 1, Rel.EQ, "quarter_cof_dim", cls_name) 74 validator.check_int(len(test_frc_shape), 2, Rel.EQ, "test_frc_dim", cls_name) 75 validator.check_int(len(mass_inverse_shape), 1, Rel.EQ, "mass_inverse_dim", cls_name) 77 validator.check_int(crd_shape[0], n, Rel.EQ, "crd_shape[0]", cls_name) 78 validator.check_int(crd_shape[1], 3, Rel.EQ, "crd_shape[1]", cls_name) 79 validator.check_int(quarter_cof_shape[0], 3, Rel.EQ, "quarter_cof_shape", cls_name) [all …]
|
D | _quant_ops.py | 20 from ..._checkparam import Validator as validator unknown 100 self.ema = validator.check_value_type('ema', ema, (bool,), self.name) 101 …self.ema_decay = validator.check_float_range(ema_decay, 0, 1, Rel.INC_BOTH, 'ema_decay', self.name) 106 validator.check_int(len(x_shape), 1, Rel.GE, "x rank", self.name) 107 validator.check("min shape", min_shape, "max shape", 109 validator.check_equal_int(len(min_shape), 1, "min shape", self.name) 113 tuple(map(partial(validator.check_tensor_dtype_valid, 156 self.ema = validator.check_value_type('ema', ema, (bool,), self.name) 157 …self.ema_decay = validator.check_float_range(ema_decay, 0, 1, Rel.INC_BOTH, 'ema_decay', self.name) 159 …self.channel_axis = validator.check_int_range(channel_axis, 0, 1, Rel.INC_BOTH, 'channel_axis', se… [all …]
|
D | nn_ops.py | 26 from ..._checkparam import Validator as validator unknown 55 validator.check_value_type(arg_name, arg_value, (int, tuple), prim_name) 73 validator.check_value_type(arg_name, arg_value, (list, tuple), prim_name) 123 validator.check_int(len(input_x), 1, Rel.GE, 'input_x rank', self.name) 128 validator.check_subclass("input_x", input_x, mstype.tensor, self.name) 213 validator.check_value_type("output_size", output_size, [int, tuple], self.name) 215 validator.check_int(len(output_size), 2, Rel.EQ, 'length of output_size', self.name) 222 validator.check_int(len(x_shape), 5, Rel.LT, 'input_x_dimensions', self.name) 224 validator.check_int(input_x_dimension, 0, Rel.GT, 'input_x dimension', self.name) 228 validator.check_value_type("item of output_size", item, [int], self.name) [all …]
|
D | _grad_ops.py | 22 from ..._checkparam import Validator as validator, Rel unknown 55 validator.check("x shape", x, "dout shape", dout, Rel.EQ, self.name) 60 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 72 validator.check("x shape", x, "dout shape", dout, Rel.EQ, self.name) 77 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 94 validator.check("x shape", x, "dout shape", dout, Rel.EQ, self.name) 99 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 111 validator.check("x shape", x, "dout shape", dout, Rel.EQ, self.name) 116 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 128 validator.check("x shape", x_shape, "dout shape", dout_shape, Rel.EQ, self.name) [all …]
|
D | array_ops.py | 35 from ..._checkparam import Validator as validator unknown 61 validator.check_value_type('use_locking', use_locking, [bool], self.name) 70 validator.check_tensor_dtype_valid('indices', indices_dtype, [mstype.int32], self.name) 72 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 102 validator.check_value_type('use_locking', use_locking, [bool], self.name) 110 validator.check_tensor_dtype_valid('indices', indices_dtype, [mstype.int32], self.name) 112 validator.check_tensors_dtypes_same_and_valid(args, mstype.number_type, self.name) 121 validator.check('the dimension of x', len(x_shape), 130 validator.check_value_type('keep_dims', keep_dims, [bool], prim_name) 131 validator.check_value_type('axis', axis, [int, tuple], prim_name) [all …]
|
D | _inner_ops.py | 21 from ..._checkparam import Validator as validator unknown 63 validator.check_value_type(f"{arg_name}s", arg_val, [tuple, list], self.name) 75 … self.padding = validator.check_string(padding.upper(), ['VALID', 'SAME'], 'padding', self.name) 104 validator.check("out_batch", out_batch, "", 0, Rel.GT, self.name) 105 validator.check("out_depth", out_depth, "", 0, Rel.GT, self.name) 106 validator.check("out_row", out_row, "", 0, Rel.GT, self.name) 107 validator.check("out_col", out_col, "", 0, Rel.GT, self.name) 112 validator.check_tensor_dtype_valid("input_x", input_x, mstype.number_type, self.name) 148 self.delta = validator.check_value_type("delta", delta, [float], self.name) 149 validator.check_value_type("start", start, [float], self.name) [all …]
|
D | inner_ops.py | 19 from ..._checkparam import Validator as validator unknown 56 validator.check_equal_int(len(x['shape']), 0, 'x shape', self.name) 59 validator.check_value_type("value", value, [numbers.Number, bool], self.name) 108 validator.check_value_type("pad", pad, [int], self.name) 109 validator.check_value_type("max_length", max_length, [int], self.name) 110 validator.check_int(max_length, 1, Rel.GE, "max_length", self.name) 116 validator.check_int(len(n_shape), 1, Rel.EQ, "rank_of_n", self.name) 117 validator.check_int(n_shape[0], 1, Rel.EQ, "length_of_n", self.name) 121 validator.check_type_name("n_type", n_type, mstype.int32, self.name) 125 validator.check_type_name("dtype", self.dtype, valid_values, self.name) [all …]
|
D | other_ops.py | 22 from ..._checkparam import Validator as validator, Rel unknown 142 …validator.check_tensors_dtypes_same_and_valid({"variable": variable}, mstype.number_type, self.nam… 180 validator.check_value_type('means', means, tuple, self.name) 181 validator.check_value_type('stds', stds, tuple, self.name) 183 validator.check_value_type("means[%d]" % i, value, [float], self.name) 185 validator.check_value_type("stds[%d]" % i, value, [float], self.name) 186 validator.check_equal_int(len(means), 4, "means len", self.name) 187 validator.check_equal_int(len(stds), 4, "stds len", self.name) 190 …validator.check('anchor_box shape[0]', anchor_box[0], 'groundtruth_box shape[0]', groundtruth_box[… 192 validator.check("anchor_box rank", len(anchor_box), "", 2, Rel.EQ, self.name) [all …]
|
D | image_ops.py | 18 from ..._checkparam import Validator as validator unknown 93 validator.check_value_type("method", method, [str], self.name) 94 validator.check_string(method, ["bilinear", "nearest", "bilinear_v2"], "method", self.name) 96 validator.check_value_type("extrapolation_value", extrapolation_value, [float], self.name) 115 validator.check_tensor_dtype_valid("x", x_dtype, 118 validator.check_tensor_dtype_valid("boxes", boxes_dtype, [mstype.float32], self.name) 119 validator.check_tensor_dtype_valid("box_index", box_index_dtype, [mstype.int32], self.name) 120 validator.check_value_type("crop_size", crop_size_value, [tuple], self.name) 122 validator.check("x rank", len(x_shape), "expected", 4, Rel.EQ, self.name) 123 validator.check("boxes rank", len(boxes_shape), "expected", 2, Rel.EQ, self.name) [all …]
|
D | comm_ops.py | 19 from ..._checkparam import Validator as validator unknown 165 validator.check_tensor_dtype_valid('x', x_dtype, target_dtypes, self.name) 225 validator.check_value_type('group', _get_group(group), (str,), self.name) 228 validator.check('rank', self.rank, 'rank_size', self.rank_size, Rel.LT, self.name) 236 validator.check_positive_int(len(x_shape), "x shape", self.name) 242 validator.check_tensor_dtype_valid('x', x_dtype, target_dtypes, self.name) 262 validator.check_value_type('group', _get_group(group), (str,), self.name) 265 validator.check('rank', self.rank, 'rank_size', self.rank_size, Rel.LT, self.name) 273 validator.check_positive_int(len(x_shape), "x shape", self.name) 279 validator.check_tensor_dtype_valid('x', x_dtype, target_dtypes, self.name) [all …]
|
D | math_ops.py | 25 from ..._checkparam import Validator as validator unknown 35 validator.check_int_range(one_axis, -dim, dim, Rel.INC_LEFT, 'axis', prim_name) 40 validator.check_value_type('axis', axis, [int, tuple, list], prim_name) 52 validator.check_value_type('axis[%d]' % index, one_axis, [int], prim_name) 113 validator.check_tensors_dtypes_same_and_valid(args_type, valid_dtype, prim_name) 134 validator.check_tensors_dtypes_same_and_valid(args, valid_dtypes, prim) 291 validator.check_scalar_or_tensor_types_same(args, mstype.number_type, self.name) 362 validator.check_scalar_or_tensor_types_same(args, mstype.number_type, self.name) 383 validator.check_value_type('keep_dims', keep_dims, [bool], self.name) 396 validator.check_tensors_dtypes_same_and_valid(args, valid_dtype, self.name) [all …]
|
D | rl_ops.py | 20 from ..._checkparam import Validator as validator unknown 107 validator.check_value_type("shape of init data", buffer_shape, [tuple, list], self.name) 108 validator.check_int(capacity, 1, Rel.GE, "capacity", self.name) 113 validator.check_int(self._batch_size, capacity, Rel.LE, "batchsize", self.name) 127 validator.check_value_type("shape of data", data_shape, [tuple, list], self.name) 134 validator.check_type_name("count type", count_type, (mstype.int32), self.name) 135 validator.check_type_name("head type", head_type, (mstype.int32), self.name) 196 validator.check_int(capacity, 1, Rel.GE, "capacity", self.name) 208 validator.check_equal_int(len(data_shape), len(exp_shape), "exp elements", self.name) 235 validator.check_type_name("count type", count_type, (mstype.int32), self.name) [all …]
|
D | debug_ops.py | 20 from ..._checkparam import Validator as validator unknown 38 validator.check_value_type('name', n_type, [type(mstype.string)], class_name) 43 validator.check_value_type('value', v_type, [type(mstype.tensor)], class_name) 446 validator.check_subclass("input", ele, 486 self.summarize = validator.check_value_type("summarize", summarize, [int], self.name) 490 validator.check_int(condition_len, 1, Rel.LE, "condition's rank", self.name) 492 validator.check_equal_int(condition[0], 1, "condition[0]", self.name) 496 … validator.check_scalar_or_tensor_types_same({"condition": condition}, [mstype.bool_], self.name) 498 validator.check_subclass("input", dtype, [mstype.tensor], self.name)
|
D | _embedding_cache_ops.py | 16 from ..._checkparam import Validator as validator unknown 54 validator.check_tensor_dtype_valid( 99 validator.check_tensor_dtype_valid( 136 validator.check_tensor_dtype_valid( 138 validator.check_value_type( 140 validator.check_value_type( 178 validator.check_tensor_dtype_valid( 214 validator.check_tensors_dtypes_same_and_valid( 260 validator.check_tensor_dtype_valid( 262 validator.check_scalar_or_tensor_types_same(
|
/third_party/mindspore/mindspore/nn/ |
D | dynamic_lr.py | 18 from mindspore._checkparam import Validator as validator unknown 47 validator.check_value_type('milestone', milestone, (tuple, list)) 48 validator.check_value_type('learning_rates', learning_rates, (tuple, list)) 55 validator.check_positive_int(item, f'milestone[{i}]') 56 validator.check_is_float(learning_rates[i], f'learning_rates[{i}]') 66 validator.check_positive_int(total_step, 'total_step') 67 validator.check_positive_int(step_per_epoch, 'step_per_epoch') 68 validator.check_positive_int(decay_epoch, 'decay_epoch') 69 validator.check_positive_float(learning_rate, 'learning_rate') 70 validator.check_is_float(learning_rate, 'learning_rate') [all …]
|
D | learning_rate_schedule.py | 22 from .._checkparam import Validator as validator unknown 49 validator.check_positive_int(decay_steps, 'decay_steps', cls_name) 50 validator.check_positive_float(learning_rate, 'learning_rate', cls_name) 51 validator.check_is_float(learning_rate, 'learning_rate', cls_name) 52 validator.check_positive_float(decay_rate, 'decay_rate', cls_name) 53 validator.check_is_float(decay_rate, 'decay_rate', cls_name) 54 validator.check_value_type('is_stair', is_stair, [bool], cls_name) 303 validator.check_non_negative_float(min_lr, "min_lr", self.cls_name) 304 validator.check_positive_float(max_lr, 'max_lr', self.cls_name) 305 validator.check_is_float(max_lr, 'max_lr', self.cls_name) [all …]
|
/third_party/node/deps/npm/node_modules/har-validator/ |
D | README.md | 10 [license-img]: https://badgen.net/github/license/ahmadnassri/node-har-validator 12 [npm-url]: https://www.npmjs.com/package/har-validator 13 [npm-img]: https://badgen.net/npm/v/har-validator 15 [super-linter-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Asupe… 16 [super-linter-img]: https://github.com/ahmadnassri/node-har-validator/workflows/super-linter/badge.… 18 [test-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Atest 19 [test-img]: https://github.com/ahmadnassri/node-har-validator/workflows/test/badge.svg 21 [release-url]: https://github.com/ahmadnassri/node-har-validator/actions?query=workflow%3Arelease 22 [release-img]: https://github.com/ahmadnassri/node-har-validator/workflows/release/badge.svg 24 …](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schem… [all …]
|
/third_party/python/Lib/test/test_peg_generator/ |
D | test_grammar_validator.py | 7 from pegen.validator import SubRuleValidator, ValidationError 21 validator = SubRuleValidator(grammar) 23 validator.validate_rule(rule_name, rule) 33 validator = SubRuleValidator(grammar) 36 validator.validate_rule(rule_name, rule) 48 validator = SubRuleValidator(grammar) 51 validator.validate_rule(rule_name, rule)
|
/third_party/mindspore/mindspore/nn/layer/ |
D | pooling.py | 18 from mindspore._checkparam import Rel, Validator as validator unknown 32 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.cls_n… 33 self.format = validator.check_string(data_format, ['NCHW', 'NHWC'], 'format', self.cls_name) 39 validator.check_value_type(arg_name, arg_value, [int, tuple], self.cls_name) 205 validator.check_value_type('kernel_size', kernel_size, [int], self.cls_name) 206 validator.check_value_type('stride', stride, [int], self.cls_name) 207 …self.pad_mode = validator.check_string(pad_mode.upper(), ['VALID', 'SAME'], 'pad_mode', self.cls_n… 208 validator.check_int(kernel_size, 1, Rel.GE, "kernel_size", self.cls_name) 209 validator.check_int(stride, 1, Rel.GE, "stride", self.cls_name) 369 validator.check_value_type('kernel_size', kernel_size, [int], self.cls_name) [all …]
|
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
D | naming-convention.ts | 435 validator: ValidatorFunction | null, 446 if (!validator) { 451 validator(key, modifiers); 488 const validator = validators.variable; constant 489 if (!validator) { 507 validator(i, modifiers); 521 const validator = validators.function; constant 522 if (!validator || node.id === null) { 526 validator(node.id); 540 const validator = validators.parameter; constant [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | reverseMappedPartiallyInferableTypes.types | 34 validator?: PropValidatorFunction<T>; 35 >validator : PropValidatorFunction<T> | undefined 59 …validator: x => { return x.valid; } }, explicit: { … 61 …validator: x => { return x.valid; } }, explicit: { … 64 …esolved: { type: PropType<MyType>; validator: (x: MyType) => boolean; }; explicit: { type: PropTyp… 65 …validator: x => { return x.valid; } }, explicit: { … 68 >notResolved : { type: PropType<MyType>; validator: (x: MyType) => boolean; } 69 …e<MyType>, validator: x => { return x.valid; } } : { t… 76 validator: x => { 77 >validator : (x: MyType) => boolean [all …]
|
D | checkExportsObjectAssignProperty.symbols | 1 === tests/cases/conformance/jsdoc/validator.ts === 5 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 9 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 14 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 19 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 24 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 29 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 35 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 40 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) 45 >m1 : Symbol(m1, Decl(validator.ts, 0, 12)) [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/macos/ |
D | xcode_validator_test.dart | 30 const XcodeValidator validator = XcodeValidator(); 31 final ValidationResult result = await validator.validate(); 40 const XcodeValidator validator = XcodeValidator(); 41 final ValidationResult result = await validator.validate(); 54 const XcodeValidator validator = XcodeValidator(); 55 final ValidationResult result = await validator.validate(); 68 const XcodeValidator validator = XcodeValidator(); 69 final ValidationResult result = await validator.validate(); 82 const XcodeValidator validator = XcodeValidator(); 83 final ValidationResult result = await validator.validate(); [all …]
|
/third_party/mindspore/mindspore/nn/optim/ |
D | rmsprop.py | 17 from mindspore._checkparam import Validator as validator unknown 184 validator.check_value_type("decay", decay, [float], self.cls_name) 185 validator.check_non_negative_float(decay, "decay", self.cls_name) 186 validator.check_value_type("momentum", momentum, [float], self.cls_name) 187 validator.check_non_negative_float(momentum, "momentum", self.cls_name) 188 validator.check_value_type("epsilon", epsilon, [float], self.cls_name) 189 validator.check_positive_float(epsilon, "epsilon", self.cls_name) 190 validator.check_value_type("use_locking", use_locking, [bool], self.cls_name) 191 validator.check_value_type("centered", centered, [bool], self.cls_name)
|