/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/ |
D | BUILD.gn | 122 "infer/adam_infer.c", 123 "infer/add_sub_grad_infer.c", 124 "infer/addn_infer.c", 125 "infer/affine_infer.c", 126 "infer/apply_momentum_infer.c", 127 "infer/argmin_max_infer.c", 128 "infer/arithmetic_compare_infer.c", 129 "infer/arithmetic_grad_infer.c", 130 "infer/arithmetic_infer.c", 131 "infer/assert_op_infer.c", [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | arrayFakeFlatNoCrashInferenceDeclarations.types | 3 …infer InnerArr)[] ? { done: InnerArr; recur: InnerArr extends readonly (infer InnerArr)[] ? { done… 4 …infer InnerArr)[] ? { done: InnerArr; recur: InnerArr extends readonly (infer InnerArr)[] ? { done… 9 "recur": Arr extends ReadonlyArray<infer InnerArr> 10 …infer InnerArr)[] ? { done: InnerArr; recur: InnerArr extends readonly (infer InnerArr)[] ? { done… 33 …depth: number) => (T | (T extends readonly (infer InnerArr)[] ? InnerArr | (InnerArr extends reado… 38 …lat(arr, depth) : (T | (T extends readonly (infer InnerArr)[] ? InnerArr | (InnerArr extends reado… 39 …infer InnerArr)[] ? { done: InnerArr; recur: InnerArr extends readonly (infer InnerArr)[] ? { done…
|
D | templateLiteralTypes1.js | 54 T extends [string | number | boolean | bigint, ...infer U] ? `${T[0]}${D}${Join<U, D>}` : 63 type MatchPair<S extends string> = S extends `[${infer A},${infer B}]` ? [A, B] : unknown; 72 S extends `${infer T}_${infer U}` ? `${Lowercase<T>}${SnakeToPascalCase<U>}` : 73 S extends `${infer T}` ? `${Lowercase<T>}` : 78 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` : 79 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` : 89 type FirstTwoAndRest<S extends string> = S extends `${infer A}${infer B}${infer R}` ? [`${A}${B}`, … 98 S extends `#${infer R1}${infer R2}${infer G1}${infer G2}${infer B1}${infer B2}` ? 112 S extends ` ${infer T}` ? Trim<T> : 113 S extends `${infer T} ` ? Trim<T> : [all …]
|
D | inferTypes1.js | 3 T extends (infer U)[] ? U : 4 T extends (...args: any[]) => infer U ? U : 5 T extends Promise<infer U> ? U : 50 type ArgumentType<T extends (x: any) => any> = T extends (a: infer A) => any ? A : any; 61 type X1<T extends { x: any, y: any }> = T extends { x: infer X, y: infer Y } ? [X, Y] : any; 67 type X2<T> = T extends { a: infer U, b: infer U } ? U : never; 75 type X3<T> = T extends { a: (x: infer U) => void, b: (x: infer U) => void } ? U : never; 83 type T60 = infer U; // Error 84 type T61<T> = infer A extends infer B ? infer C : infer D; // Error 85 type T62<T> = U extends (infer U)[] ? U : U; // Error [all …]
|
D | inferTypes2.types | 4 export declare function foo<T>(obj: T): T extends () => infer P ? P : never; 5 >foo : <T>(obj: T) => T extends () => infer P ? P : never 9 >bar : <T>(obj: T) => T extends () => infer P ? P : never 13 >foo(obj) : T extends () => infer P ? P : never 14 >foo : <T>(obj: T) => T extends () => infer P ? P : never 22 …re function foo2<T>(obj: T): T extends { [K in keyof BadNested<infer P>]: BadNested<infer P>[K] } … 23 >foo2 : <T>(obj: T) => T extends { x: infer P extends number ? infer P : string; } ? P : never 27 >bar2 : <T>(obj: T) => T extends { x: infer P extends number ? infer P : string; } ? P : never 31 >foo2(obj) : T extends { x: infer P extends number ? infer P : string; } ? P : never 32 >foo2 : <T>(obj: T) => T extends { x: infer P extends number ? infer P : string; } ? P : never [all …]
|
D | identicalGenericConditionalsWithInferRelated.types | 6 type Cond1 = X extends [infer A] ? A : never; 7 >Cond1 : X extends [infer A] ? A : never 9 type Cond2 = X extends [infer A] ? A : never; 10 >Cond2 : X extends [infer A] ? A : never 13 >x : X extends [infer A] ? A : never 18 >y : X extends [infer A] ? A : never 23 >x = y : X extends [infer A] ? A : never 24 >x : X extends [infer A] ? A : never 25 >y : X extends [infer A] ? A : never 28 >y = x : X extends [infer A] ? A : never [all …]
|
D | inferTypes2.js | 4 export declare function foo<T>(obj: T): T extends () => infer P ? P : never; 11 …re function foo2<T>(obj: T): T extends { [K in keyof BadNested<infer P>]: BadNested<infer P>[K] } … 18 type Weird = any extends infer U ? U : never; 19 type AlsoWeird = unknown extends infer U ? U : never; 43 export declare function foo<T>(obj: T): T extends () => infer P ? P : never; 44 export declare function bar<T>(obj: T): T extends () => infer P ? P : never; 49 [K in keyof BadNested<infer P>]: BadNested<infer P>[K]; 52 x: infer P extends number ? infer P : string;
|
D | inferTInParentheses.js | 5 type T1 = F1 extends (...args: (infer T)) => void ? T : never; 6 type T2 = F1 extends (args: [...(infer T)]) => void ? T : never; 7 type T3<T> = T extends IsNumber<(infer N)> ? true : false; 9 type T4 = F1 extends (...args: ((infer T))) => void ? T : never; 10 type T5 = F1 extends (args: [...((infer T))]) => void ? T : never; 11 type T6<T> = T extends IsNumber<((infer N))> ? true : false; 13 type T7 = F1 extends (...args: ((((infer T))))) => void ? T : never; 14 type T8 = F1 extends (args: [...((((infer T))))]) => void ? T : never; 15 type T9<T> = T extends IsNumber<((((infer N))))> ? true : false;
|
D | templateLiteralTypes1.errors.txt | 7 tests/cases/conformance/types/literal/templateLiteralTypes1.ts(165,15): error TS1338: 'infer' decla… 74 T extends [string | number | boolean | bigint, ...infer U] ? `${T[0]}${D}${Join<U, D>}` : 83 type MatchPair<S extends string> = S extends `[${infer A},${infer B}]` ? [A, B] : unknown; 92 S extends `${infer T}_${infer U}` ? `${Lowercase<T>}${SnakeToPascalCase<U>}` : 93 S extends `${infer T}` ? `${Lowercase<T>}` : 98 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` : 99 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` : 109 …type FirstTwoAndRest<S extends string> = S extends `${infer A}${infer B}${infer R}` ? [`${A}${B}`,… 118 S extends `#${infer R1}${infer R2}${infer G1}${infer G2}${infer B1}${infer B2}` ? 132 S extends ` ${infer T}` ? Trim<T> : [all …]
|
D | inferTypes1.errors.txt | 14 tests/cases/conformance/types/conditional/inferTypes1.ts(82,12): error TS1338: 'infer' declarations… 15 tests/cases/conformance/types/conditional/inferTypes1.ts(83,15): error TS1338: 'infer' declarations… 16 tests/cases/conformance/types/conditional/inferTypes1.ts(83,41): error TS1338: 'infer' declarations… 17 tests/cases/conformance/types/conditional/inferTypes1.ts(83,51): error TS1338: 'infer' declarations… 30 T extends (infer U)[] ? U : 31 T extends (...args: any[]) => infer U ? U : 32 T extends Promise<infer U> ? U : 93 type ArgumentType<T extends (x: any) => any> = T extends (a: infer A) => any ? A : any; 109 type X1<T extends { x: any, y: any }> = T extends { x: infer X, y: infer Y } ? [X, Y] : any; 115 type X2<T> = T extends { a: infer U, b: infer U } ? U : never; [all …]
|
D | inferTInParentheses.types | 9 type T1 = F1 extends (...args: (infer T)) => void ? T : never; 13 type T2 = F1 extends (args: [...(infer T)]) => void ? T : never; 17 type T3<T> = T extends IsNumber<(infer N)> ? true : false; 22 type T4 = F1 extends (...args: ((infer T))) => void ? T : never; 26 type T5 = F1 extends (args: [...((infer T))]) => void ? T : never; 30 type T6<T> = T extends IsNumber<((infer N))> ? true : false; 35 type T7 = F1 extends (...args: ((((infer T))))) => void ? T : never; 39 type T8 = F1 extends (args: [...((((infer T))))]) => void ? T : never; 43 type T9<T> = T extends IsNumber<((((infer N))))> ? true : false;
|
D | inferTypes1.types | 5 T extends (infer U)[] ? U : 6 T extends (...args: any[]) => infer U ? U : 9 T extends Promise<infer U> ? U : 133 type ArgumentType<T extends (x: any) => any> = T extends (a: infer A) => any ? A : any; 167 type X1<T extends { x: any, y: any }> = T extends { x: infer X, y: infer Y } ? [X, Y] : any; 190 type X2<T> = T extends { a: infer U, b: infer U } ? U : never; 218 type X3<T> = T extends { a: (x: infer U) => void, b: (x: infer U) => void } ? U : never; 220 >a : (x: infer U) => void 222 >b : (x: infer U) => void 253 type T60 = infer U; // Error [all …]
|
D | nondistributiveConditionalTypeInfer.types | 2 type _R<T> = [T] extends [{ _R: (_: infer R) => void }] ? R : never; 4 >_R : (_: infer R) => void 7 type _E<T> = [T] extends [{ _E: () => infer E }] ? E : never; 9 >_E : () => infer E 11 type _A<T> = [T] extends [{ _A: () => infer A }] ? A : never; 13 >_A : () => infer A
|
D | recursiveConditionalTypes.js | 6 T extends PromiseLike<infer U> ? Awaited<U> : 29 type _Flatten<T> = T extends readonly (infer U)[] ? _Flatten<U> : T; 98 type Intersect<U extends any[], R = unknown> = U extends [infer H, ...infer T] ? Intersect<T, R & H… 104 type Unpack1<T> = T extends (infer U)[] ? Unpack1<U> : T; 105 type Unpack2<T> = T extends (infer U)[] ? Unpack2<U> : T; 125 S extends ` ${infer R0}` ? 126 ParseManyWhitespace<R0> extends ParseSuccess<infer R1> ? ParseSuccess<R1> : null : 132 S extends ` ${infer R0}` ? 136 type Helper<T> = T extends ParseSuccess<infer R> ? ParseSuccess<R> : null 174 declare type Awaited<T> = T extends null | undefined ? T : T extends PromiseLike<infer U> ? Awaited… [all …]
|
D | declarationEmitShadowingInferNotRenamed.types | 12 …extends new (...args: any[]) => infer C ? UpdatedClient<C> : { [K in keyof D]: D[K] extends new (.… 13 …infer C ? UpdatedClient<C> // return instance : { [K in keyof D]: D[K] extends new (...args… 26 ): D extends new (...args: any[]) => infer C 31 … [K in keyof D]: D[K] extends new (...args: any[]) => infer C // or map of instances respectively
|
D | inferTInParentheses.symbols | 11 type T1 = F1 extends (...args: (infer T)) => void ? T : never; 18 type T2 = F1 extends (args: [...(infer T)]) => void ? T : never; 25 type T3<T> = T extends IsNumber<(infer N)> ? true : false; 32 type T4 = F1 extends (...args: ((infer T))) => void ? T : never; 39 type T5 = F1 extends (args: [...((infer T))]) => void ? T : never; 46 type T6<T> = T extends IsNumber<((infer N))> ? true : false; 53 type T7 = F1 extends (...args: ((((infer T))))) => void ? T : never; 60 type T8 = F1 extends (args: [...((((infer T))))]) => void ? T : never; 67 type T9<T> = T extends IsNumber<((((infer N))))> ? true : false;
|
/third_party/typescript/tests/cases/conformance/types/conditional/ |
D | inferTypes1.ts | 5 T extends (infer U)[] ? U : 6 T extends (...args: any[]) => infer U ? U : 7 T extends Promise<infer U> ? U : 52 type ArgumentType<T extends (x: any) => any> = T extends (a: infer A) => any ? A : any; 63 type X1<T extends { x: any, y: any }> = T extends { x: infer X, y: infer Y } ? [X, Y] : any; 69 type X2<T> = T extends { a: infer U, b: infer U } ? U : never; 77 type X3<T> = T extends { a: (x: infer U) => void, b: (x: infer U) => void } ? U : never; 85 type T60 = infer U; // Error 86 type T61<T> = infer A extends infer B ? infer C : infer D; // Error 87 type T62<T> = U extends (infer U)[] ? U : U; // Error [all …]
|
D | inferTypes2.ts | 6 export declare function foo<T>(obj: T): T extends () => infer P ? P : never; 13 …re function foo2<T>(obj: T): T extends { [K in keyof BadNested<infer P>]: BadNested<infer P>[K] } … 20 type Weird = any extends infer U ? U : never; alias 21 type AlsoWeird = unknown extends infer U ? U : never; alias
|
/third_party/typescript/tests/cases/conformance/types/literal/ |
D | templateLiteralTypes1.ts | 56 T extends [string | number | boolean | bigint, ...infer U] ? `${T[0]}${D}${Join<U, D>}` : 65 type MatchPair<S extends string> = S extends `[${infer A},${infer B}]` ? [A, B] : unknown; 74 S extends `${infer T}_${infer U}` ? `${Lowercase<T>}${SnakeToPascalCase<U>}` : 75 S extends `${infer T}` ? `${Lowercase<T>}` : 80 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` : 81 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` : 91 type FirstTwoAndRest<S extends string> = S extends `${infer A}${infer B}${infer R}` ? [`${A}${B}`, … 100 S extends `#${infer R1}${infer R2}${infer G1}${infer G2}${infer B1}${infer B2}` ? 114 S extends ` ${infer T}` ? Trim<T> : 115 S extends `${infer T} ` ? Trim<T> : [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | cbs_av1_syntax_template.c | 40 infer(temporal_id, 0); in FUNC() 41 infer(spatial_id, 0); in FUNC() 94 infer(mono_chrome, 0); in FUNC() 105 infer(color_primaries, AVCOL_PRI_UNSPECIFIED); in FUNC() 106 infer(transfer_characteristics, AVCOL_TRC_UNSPECIFIED); in FUNC() 107 infer(matrix_coefficients, AVCOL_SPC_UNSPECIFIED); in FUNC() 113 infer(subsampling_x, 1); in FUNC() 114 infer(subsampling_y, 1); in FUNC() 115 infer(chroma_sample_position, AV1_CSP_UNKNOWN); in FUNC() 116 infer(separate_uv_delta_q, 0); in FUNC() [all …]
|
D | cbs_h265_syntax_template.c | 283 infer(sub_pic_hrd_params_present_flag, 0); in FUNC() 285 infer(initial_cpb_removal_delay_length_minus1, 23); in FUNC() 286 infer(au_cpb_removal_delay_length_minus1, 23); in FUNC() 287 infer(dpb_output_delay_length_minus1, 23); in FUNC() 297 infer(fixed_pic_rate_within_cvs_flag[i], 1); in FUNC() 301 infer(low_delay_hrd_flag[i], 0); in FUNC() 308 infer(cpb_cnt_minus1[i], 0); in FUNC() 332 infer(aspect_ratio_idc, 0); in FUNC() 349 infer(colour_primaries, 2); in FUNC() 350 infer(transfer_characteristics, 2); in FUNC() [all …]
|
D | cbs_h264_syntax_template.c | 124 infer(aspect_ratio_idc, 0); in FUNC() 141 infer(colour_primaries, 2); in FUNC() 142 infer(transfer_characteristics, 2); in FUNC() 143 infer(matrix_coefficients, 2); in FUNC() 146 infer(video_format, 5); in FUNC() 147 infer(video_full_range_flag, 0); in FUNC() 148 infer(colour_primaries, 2); in FUNC() 149 infer(transfer_characteristics, 2); in FUNC() 150 infer(matrix_coefficients, 2); in FUNC() 158 infer(chroma_sample_loc_type_top_field, 0); in FUNC() [all …]
|
D | cbs_vp9_syntax_template.c | 52 infer(subsampling_x, 1); in FUNC() 53 infer(subsampling_y, 1); in FUNC() 56 infer(color_range, 1); in FUNC() 58 infer(subsampling_x, 0); in FUNC() 59 infer(subsampling_y, 0); in FUNC() 214 infer(segmentation_pred_prob[i], 255); in FUNC() 231 infer(feature_sign[i][j], 0); in FUNC() 233 infer(feature_value[i][j], 0); in FUNC() 234 infer(feature_sign[i][j], 0); in FUNC() 282 infer(header_size_in_bytes, 0); in FUNC() [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | inferTInParentheses.ts | 4 type T1 = F1 extends (...args: (infer T)) => void ? T : never; 5 type T2 = F1 extends (args: [...(infer T)]) => void ? T : never; 6 type T3<T> = T extends IsNumber<(infer N)> ? true : false; 8 type T4 = F1 extends (...args: ((infer T))) => void ? T : never; 9 type T5 = F1 extends (args: [...((infer T))]) => void ? T : never; 10 type T6<T> = T extends IsNumber<((infer N))> ? true : false; 12 type T7 = F1 extends (...args: ((((infer T))))) => void ? T : never; 13 type T8 = F1 extends (args: [...((((infer T))))]) => void ? T : never; 14 type T9<T> = T extends IsNumber<((((infer N))))> ? true : false;
|
D | recursiveConditionalTypes.ts | 9 T extends PromiseLike<infer U> ? Awaited<U> : 32 type _Flatten<T> = T extends readonly (infer U)[] ? _Flatten<U> : T; 101 type Intersect<U extends any[], R = unknown> = U extends [infer H, ...infer T] ? Intersect<T, R & H… 107 type Unpack1<T> = T extends (infer U)[] ? Unpack1<U> : T; 108 type Unpack2<T> = T extends (infer U)[] ? Unpack2<U> : T; 128 S extends ` ${infer R0}` ? 129 ParseManyWhitespace<R0> extends ParseSuccess<infer R1> ? ParseSuccess<R1> : null : 135 S extends ` ${infer R0}` ? 139 type Helper<T> = T extends ParseSuccess<infer R> ? ParseSuccess<R> : null
|