Home
last modified time | relevance | path

Searched refs:Validator (Results 1 – 25 of 207) sorted by relevance

123456789

/third_party/mindspore/mindspore/ops/operations/
Drandom_ops.py17 from ..._checkparam import Validator, Rel
66 Validator.check_non_negative_int(seed, "seed", self.name)
67 Validator.check_non_negative_int(seed2, "seed2", self.name)
73 Validator.check_value_type("shape", shape_v, [tuple], self.name)
75 Validator.check_positive_int(shape_i, f'shape[{i}]', self.name)
123 Validator.check_value_type('seed', seed, [int], self.name)
124 Validator.check_value_type('seed2', seed2, [int], self.name)
130 Validator.check_value_type("shape", shape_v, [tuple], self.name)
132 Validator.check_positive_int(shape_i, f'shape[{i}]', self.name)
186 Validator.check_non_negative_int(seed, "seed", self.name)
[all …]
/third_party/mindspore/tests/ut/python/nn/
Dtest_checkparameter.py18 from mindspore._checkparam import Validator, twice
26 assert Validator.check_is_int(a) == a
30 Validator.check_is_int(3.3)
34 Validator.check_is_int("str")
38 Validator.check_is_int(True)
42 Validator.check_is_int(True)
44 Validator.check_is_int(False)
48 assert Validator.check_positive_int(a) == a
53 Validator.check_positive_int(a)
57 Validator.check_positive_int(3.3)
[all …]
/third_party/typescript/tests/baselines/reference/
DpropTypeValidatorInference.types14 export type RequiredKeys<V> = { [K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer …
24 export interface Validator<T> {
38 export interface Requireable<T> extends Validator<T> {
39 isRequired: Validator<NonNullable<T>>;
40 >isRequired : Validator<NonNullable<T>>
43 export type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
46 export type InferType<V> = V extends Validator<infer T> ? T : any;
74 export function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<…
75 >oneOfType : <T extends Validator<any>>(types: T[]) => Requireable<NonNullable<InferType<T>>>
123 >innerProps : { foo: PropTypes.Validator<string>; bar: PropTypes.Requireable<boolean>; baz: PropTyp…
[all …]
DgenericClassPropertyInheritanceSpecialization.js43 export class Validator<TValue> {
56 export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
67 validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
73 ….ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Contro… field in ViewModel
100 var Validator = /** @class */ (function () { class
101 function Validator(message) { class in anonymousFunction89209bf90600.anonymousFunction89209bf90700.anonymousFunction89209bf90800.Validator
103 Validator.prototype.destroy = function () { }; class
104 Validator.prototype._validate = function (value) { return 0; };
105 return Validator;
107 Validators.Validator = Validator;
[all …]
DjsdocConstructorFunctionTypeReference.types2 var Validator = function VFunc() {
3 >Validator : typeof VFunc
16 Validator.prototype.num = 12
17 >Validator.prototype.num = 12 : 12
18 >Validator.prototype.num : any
19 >Validator.prototype : any
20 >Validator : typeof VFunc
26 * @param {Validator} state
29 >validateRegExpFlags : (state: Validator) => string
30 >function(state) { return state.flags} : (state: Validator) => string
DjsdocConstructorFunctionTypeReference.symbols2 var Validator = function VFunc() {
3 >Validator : Symbol(Validator, Decl(jsdocConstructorFunctionTypeReference.js, 0, 3))
13 Validator.prototype.num = 12
14 >Validator.prototype : Symbol(Validator.num, Decl(jsdocConstructorFunctionTypeReference.js, 2, 2))
15 >Validator : Symbol(Validator, Decl(jsdocConstructorFunctionTypeReference.js, 0, 3))
17 >num : Symbol(Validator.num, Decl(jsdocConstructorFunctionTypeReference.js, 2, 2))
20 * @param {Validator} state
DgenericClassPropertyInheritanceSpecialization.types106 export class Validator<TValue> {
107 >Validator : Validator<TValue>
140 export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
141 >Validator : Validator<TValue>
142 >Portal.Controls.Validators.Validator : Portal.Controls.Validators.Validator<TValue>
148 >Validator : typeof Portal.Controls.Validators.Validator
155 >super : typeof Portal.Controls.Validators.Validator
164 validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
165 >validators : KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>
176 ….ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Contro…
[all …]
DtypeGuardsWithInstanceOf.types37 interface Validator {
57 let v: Validator & Partial<OnChanges> = null as any;
58 >v : Validator & Partial<OnChanges>
64 >v : Validator & Partial<OnChanges>
67 v // Validator & Partial<OnChanges> & C
70 v // Validator & Partial<OnChanges> via subtype reduction
71 >v : C | (Validator & Partial<OnChanges>)
79 >v : C | (Validator & Partial<OnChanges>)
85 >v : C | (Validator & Partial<OnChanges>)
DgenericClassPropertyInheritanceSpecialization.symbols152 export class Validator<TValue> {
153 >Validator : Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 39, 35))
157 >_subscription : Symbol(Validator._subscription, Decl(genericClassPropertyInheritanceSpecialization…
160 >message : Symbol(Validator.message, Decl(genericClassPropertyInheritanceSpecialization.ts, 42, 30))
164 >validationState : Symbol(Validator.validationState, Decl(genericClassPropertyInheritanceSpecializa…
168 >validate : Symbol(Validator.validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 44, 5…
176 >destroy : Symbol(Validator.destroy, Decl(genericClassPropertyInheritanceSpecialization.ts, 46, 41))
179 >_validate : Symbol(Validator._validate, Decl(genericClassPropertyInheritanceSpecialization.ts, 47,…
191 export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
192 >Validator : Symbol(Validator, Decl(genericClassPropertyInheritanceSpecialization.ts, 52, 48))
[all …]
DtypeGuardsWithInstanceOf.symbols36 interface Validator {
37 >Validator : Symbol(Validator, Decl(typeGuardsWithInstanceOf.ts, 13, 1))
40 >validate : Symbol(Validator.validate, Decl(typeGuardsWithInstanceOf.ts, 14, 21))
57 let v: Validator & Partial<OnChanges> = null as any;
59 >Validator : Symbol(Validator, Decl(typeGuardsWithInstanceOf.ts, 13, 1))
67 v // Validator & Partial<OnChanges> & C
70 v // Validator & Partial<OnChanges> via subtype reduction
DtypeGuardsWithInstanceOf.errors.txt3 …36,11): error TS2339: Property 'onChanges' does not exist on type 'C | (Validator & Partial<OnChan…
5 …37,11): error TS2339: Property 'onChanges' does not exist on type 'C | (Validator & Partial<OnChan…
27 interface Validator {
38 let v: Validator & Partial<OnChanges> = null as any;
40 v // Validator & Partial<OnChanges> & C
42 v // Validator & Partial<OnChanges> via subtype reduction
50 !!! error TS2339: Property 'onChanges' does not exist on type 'C | (Validator & Partial<OnChanges>)…
54 !!! error TS2339: Property 'onChanges' does not exist on type 'C | (Validator & Partial<OnChanges>)…
DpropTypeValidatorInference.js8 export type RequiredKeys<V> = { [K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer …
12 export interface Validator<T> {
17 export interface Requireable<T> extends Validator<T> {
18 isRequired: Validator<NonNullable<T>>;
21 export type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
23 export type InferType<V> = V extends Validator<infer T> ? T : any;
34 export function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<…
DidenticalTypesNoDifferByCheckOrder.symbols48 type Validator<T> = {(): boolean, opt?: T};
49 >Validator : Symbol(Validator, Decl(identicalTypesNoDifferByCheckOrder.ts, 14, 87))
54 …dationMap<T> = {[K in keyof T]?: null extends T[K] ? Validator<T[K] | null | undefined> : Validato…
61 >Validator : Symbol(Validator, Decl(identicalTypesNoDifferByCheckOrder.ts, 14, 87))
64 >Validator : Symbol(Validator, Decl(identicalTypesNoDifferByCheckOrder.ts, 14, 87))
/third_party/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_checkparameter.py18 from mindspore._checkparam import Validator, check_input_format, _expand_tuple
29 assert Validator.check_is_int(3) == 3
34 Validator.check_positive_int(-1)
48 Validator.check_is_int(3.3)
53 Validator.check_is_int("str")
58 Validator.check_is_int(True)
62 assert Validator.check_bool(True)
66 assert Validator.check_bool(False) is not True
71 Validator.check_bool("str")
76 Validator.check_bool(1)
[all …]
/third_party/mindspore/mindspore/nn/layer/
Dconv.py24 from mindspore._checkparam import Validator, Rel, twice, _check_3d_int_or_tuple
52 self.in_channels = Validator.check_positive_int(in_channels, 'in_channels', self.cls_name)
53 … self.out_channels = Validator.check_positive_int(out_channels, 'out_channels', self.cls_name)
59 …self.format = Validator.check_string(data_format, ['NCHW', 'NHWC', 'NCDHW'], 'format', self.cls_na…
69 Validator.check_non_negative_int(padding, 'padding', self.cls_name)
73 Validator.check_non_negative_int(pad, 'padding item', self.cls_name)
80 self.group = Validator.check_positive_int(group)
83 Validator.check_positive_int(kernel_size_elem, 'kernel_size item', self.cls_name)
85 Validator.check_positive_int(stride_elem, 'stride item', self.cls_name)
87 Validator.check_positive_int(dilation_elem, 'dilation item', self.cls_name)
[all …]
Dquant.py26 from mindspore._checkparam import Validator, twice
388 Validator.check_value_type("min_init", min_init, [int, float, list], type(self).__name__)
389 Validator.check_value_type("max_init", max_init, [int, float, list], type(self).__name__)
390 Validator.check_non_negative_int(quant_delay, 'quant_delay', self.cls_name)
688 self.in_channels = Validator.check_positive_int(in_channels, "in_channels", self.cls_name)
689 … self.out_channels = Validator.check_positive_int(out_channels, "out_channels", self.cls_name)
694 Validator.check_positive_int(kernel_size_elem, 'kernel_size item', self.cls_name)
696 Validator.check_positive_int(stride_elem, 'stride item', self.cls_name)
698 Validator.check_positive_int(dilation_elem, 'dilation item', self.cls_name)
704 Validator.check_non_negative_int(padding, 'padding', self.cls_name)
[all …]
Dbasic.py31 from mindspore._checkparam import Rel, Validator
82 Validator.check_value_type("scale", scale, [int, float], self.cls_name)
154 Validator.check_subclass("dtype", dtype, mstype.number_type, self.cls_name)
155 Validator.check_value_type('keep_prob', keep_prob, [float], self.cls_name)
287 self.in_channels = Validator.check_positive_int(in_channels, "in_channels", self.cls_name)
288 … self.out_channels = Validator.check_positive_int(out_channels, "out_channels", self.cls_name)
289 self.has_bias = Validator.check_bool(has_bias, "has_bias", self.cls_name)
419 Validator.check_value_type("axis[%d]" % idx, item, [int], self.cls_name)
420 self.axis = Validator.check_value_type('axis', axis, [int, tuple], self.cls_name)
517 Validator.check_value_type("keep_dims", keep_dims, [bool], self.cls_name)
[all …]
/third_party/mindspore/mindspore/parallel/nn/
Dop_parallel_config.py19 from mindspore._checkparam import Validator
58 Validator.check_positive_int(data_parallel, "data_parallel")
59 Validator.check_positive_int(model_parallel, "model_parallel")
69 Validator.check_positive_int(value, "data_parallel")
78 Validator.check_positive_int(value, "model_parallel")
97 Validator.check_positive_int(pipeline_stage, "pipeline_stage")
98 Validator.check_positive_int(micro_batch_num, "micro_batch_num")
108 Validator.check_positive_int(value, "pipeline_stage")
118 Validator.check_positive_int(value, "micro_batch_num")
Dtransformer.py30 from mindspore._checkparam import Validator
72 Validator.check_bool(vocab_emb_dp, "vocab_emb_dp")
97 Validator.check_bool(value, "vocab_emb_dp")
159 Validator.check_bool(value, "recompute")
176 Validator.check_positive_int(value, "gradient_aggregation_group")
217 Validator.check_bool(value, "optimizer_shard")
312 @_args_type_validator_check(hidden_size=Validator.check_positive_int,
313 ffn_hidden_size=Validator.check_positive_int,
314 dropout_rate=Validator.check_non_negative_float,
432 @_args_type_validator_check(seq_length=Validator.check_positive_int,
[all …]
/third_party/typescript/tests/cases/compiler/
DpropTypeValidatorInference.ts7 export type RequiredKeys<V> = { [K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer …
11 export interface Validator<T> { interface
16 export interface Requireable<T> extends Validator<T> {
17 isRequired: Validator<NonNullable<T>>;
20 export type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
22 export type InferType<V> = V extends Validator<infer T> ? T : any;
33 export function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<…
DgenericClassPropertyInheritanceSpecialization.ts42 export class Validator<TValue> { class
55 export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> { class
66 validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
72 ….ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Contro…
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/expanders/
Dutils.h31 class Validator; variable
50 std::vector<std::unique_ptr<Validator>> validators_;
58 class Validator {
63 class CheckAllFormatsSame : public Validator {
78 class CheckAttr : public Validator {
96 class SupportFormat : public Validator {
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/commands/
Ddoctor_test.dart199 '[✓] Passing Validator (with statusInfo)\n'
200 '[✓] Another Passing Validator (with statusInfo)\n'
302 '[✓] Passing Validator (with statusInfo)\n'
303 '[✓] Another Passing Validator (with statusInfo)\n'
315 '[!] Partial Validator with only a Hint\n'
326 '[✓] Passing Validator (with statusInfo)\n'
327 '[!] Partial Validator with only a Hint\n'
329 '[!] Partial Validator with Errors\n'
332 '[✓] Another Passing Validator (with statusInfo)\n'
342 '[✓] Passing Validator (with statusInfo)\n'
[all …]
/third_party/mindspore/tests/st/gnn/
Dgat.py17 from mindspore._checkparam import Validator
74 self.ftr_dims = Validator.check_positive_int(ftr_dims)
75 self.num_class = Validator.check_positive_int(num_class)
76 self.num_nodes = Validator.check_positive_int(num_nodes)
82 self.residual = Validator.check_bool(residual)
/third_party/mindspore/mindspore/common/
Dseed.py17 from mindspore._checkparam import Validator
147 Validator.check_non_negative_int(seed, "seed", "global_seed")
216 Validator.check_non_negative_int(op_seed, "seed", "init")
260 Validator.check_non_negative_int(op_seed, "seed", kernel_name)

123456789