Home
last modified time | relevance | path

Searched refs:constant (Results 1 – 25 of 5767) sorted by relevance

12345678910>>...231

/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/
DConstantUnion.h210 bool operator==(const TConstUnion& constant) const
212 if (constant.type != type)
217 if (constant.iConst == iConst)
222 if (constant.uConst == uConst)
227 if (constant.bConst == bConst)
232 if (constant.dConst == dConst)
239 if (constant.i16Const == i16Const)
244 if (constant.u16Const == u16Const)
249 if (constant.i8Const == i8Const)
254 if (constant.u8Const == u8Const)
[all …]
/external/deqp-deps/glslang/glslang/Include/
DConstantUnion.h210 bool operator==(const TConstUnion& constant) const
212 if (constant.type != type)
217 if (constant.iConst == iConst)
222 if (constant.uConst == uConst)
227 if (constant.bConst == bConst)
232 if (constant.dConst == dConst)
239 if (constant.i16Const == i16Const)
244 if (constant.u16Const == u16Const)
249 if (constant.i8Const == i8Const)
254 if (constant.u8Const == u8Const)
[all …]
/external/swiftshader/src/OpenGL/compiler/
DConstantUnion.h33 bool cast(TBasicType newType, const ConstantUnion &constant) in cast() argument
38 switch (constant.type) in cast()
40 case EbtInt: setFConst(static_cast<float>(constant.getIConst())); break; in cast()
41 case EbtUInt: setFConst(static_cast<float>(constant.getUConst())); break; in cast()
42 case EbtBool: setFConst(static_cast<float>(constant.getBConst())); break; in cast()
43 case EbtFloat: setFConst(static_cast<float>(constant.getFConst())); break; in cast()
48 switch (constant.type) in cast()
50 case EbtInt: setIConst(static_cast<int>(constant.getIConst())); break; in cast()
51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast()
52 case EbtBool: setIConst(static_cast<int>(constant.getBConst())); break; in cast()
[all …]
/external/llvm-project/mlir/test/IR/
Drepro_b120295301.mlir5 %1 = "std.constant"() {value = dense<0.1> : tensor<1xf32>} : () -> (tensor<1xf32>)
6 %2 = "std.constant"() {value = dense<0.1> : tensor<2xf32>} : () -> (tensor<2xf32>)
7 %3 = "std.constant"() {value = dense<0.1> : tensor<3xf32>} : () -> (tensor<3xf32>)
8 %4 = "std.constant"() {value = dense<0.1> : tensor<4xf32>} : () -> (tensor<4xf32>)
9 %5 = "std.constant"() {value = dense<0.1> : tensor<5xf32>} : () -> (tensor<5xf32>)
10 %6 = "std.constant"() {value = dense<0.1> : tensor<6xf32>} : () -> (tensor<6xf32>)
11 %7 = "std.constant"() {value = dense<0.1> : tensor<7xf32>} : () -> (tensor<7xf32>)
12 %8 = "std.constant"() {value = dense<0.1> : tensor<8xf32>} : () -> (tensor<8xf32>)
13 %9 = "std.constant"() {value = dense<0.1> : tensor<9xf32>} : () -> (tensor<9xf32>)
14 %10 = "std.constant"() {value = dense<0.1> : tensor<10xf32>} : () -> (tensor<10xf32>)
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/
Dvulkan.ast.vert.out8 0:9 'scf1' ( specialization-constant const highp float)
10 0:10 Construct bool ( specialization-constant const bool)
11 0:10 'scbt' ( specialization-constant const bool)
13 0:11 Convert int to bool ( specialization-constant const bool)
14 0:11 'sci2' ( specialization-constant const highp int)
17 0:13 'scf1' ( specialization-constant const highp float)
20 0:14 'scbt' ( specialization-constant const bool)
23 0:15 'sci2' ( specialization-constant const highp int)
26 0:17 'scf1' ( specialization-constant const highp float)
28 0:18 Convert bool to int ( specialization-constant const int)
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dvulkan.ast.vert.out8 0:9 'scf1' ( specialization-constant const highp float)
10 0:10 Construct bool ( specialization-constant const bool)
11 0:10 'scbt' ( specialization-constant const bool)
13 0:11 Convert int to bool ( specialization-constant const bool)
14 0:11 'sci2' ( specialization-constant const highp int)
17 0:13 'scf1' ( specialization-constant const highp float)
20 0:14 'scbt' ( specialization-constant const bool)
23 0:15 'sci2' ( specialization-constant const highp int)
26 0:17 'scf1' ( specialization-constant const highp float)
28 0:18 Convert bool to int ( specialization-constant const int)
[all …]
/external/llvm-project/mlir/test/Dialect/SPIRV/Serialization/
Dconstant.mlir6 // CHECK: spv.constant true
7 %0 = spv.constant true
8 // CHECK: spv.constant false
9 %1 = spv.constant false
18 // CHECK: spv.constant 0 : i32
19 %0 = spv.constant 0 : i32
20 // CHECK: spv.constant 10 : i32
21 %1 = spv.constant 10 : i32
22 // CHECK: spv.constant -5 : i32
23 %2 = spv.constant -5 : i32
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Ddynamic_stitch_op_test.py41 indices = [constant_op.constant(0), constant_op.constant(1)]
42 data = [constant_op.constant(40), constant_op.constant(60)]
55 constant_op.constant(1)
57 data = [constant_op.constant(40), constant_op.constant(60)]
74 constant_op.constant([0, 4, 7]),
75 constant_op.constant([1, 6, 2, 3, 5])
78 math_ops.cast(constant_op.constant([0, 40, 70]), dtype=dtype),
80 constant_op.constant([10, 60, 20, 30, 50]), dtype=dtype)
89 indices = [constant_op.constant([1, 6, 2, 3, 5, 0, 4, 7])]
90 data = [constant_op.constant([10, 60, 20, 30, 50, 0, 40, 70])]
[all …]
Dmap_ops_test.py43 k = constant_op.constant(1.0)
44 v = constant_op.constant(2.0)
51 k = constant_op.constant(1.0)
52 v = constant_op.constant(2.0)
59 k = constant_op.constant(1.0)
67 k = constant_op.constant(1.0)
68 k2 = constant_op.constant(2.0)
69 v = constant_op.constant(11.0)
78 k = constant_op.constant(1.0)
79 v = constant_op.constant(2.0)
[all …]
/external/llvm-project/mlir/test/Transforms/
Dconstant-fold.mlir1 // RUN: mlir-opt -allow-unregistered-dialect %s -split-input-file -test-constant-fold | FileCheck %s
8 // CHECK: [[C:%.+]] = constant 6.{{0*}}e+00 : f32
11 %0 = constant 4.5 : f32
12 %1 = constant 1.5 : f32
27 %0 = constant 4.5 : f32
28 %1 = constant 1.5 : f32
30 // CHECK-NEXT: [[C:%.+]] = constant 6.{{0*}}e+00 : f32
41 %0 = constant dense<4.5> : tensor<4xf32>
42 %1 = constant dense<1.5> : tensor<4xf32>
44 // CHECK-NEXT: [[C:%.+]] = constant dense<6.{{0*}}e+00> : tensor<4xf32>
[all …]
Dparallel-loop-collapsing.mlir4 %c0 = constant 0 : index
5 %c1 = constant 1 : index
6 %c2 = constant 2 : index
7 %c3 = constant 3 : index
8 %c4 = constant 4 : index
9 %c5 = constant 5 : index
10 %c6 = constant 6 : index
11 %c7 = constant 7 : index
12 %c8 = constant 8 : index
13 %c9 = constant 9 : index
[all …]
Dcse.mlir8 // CHECK-NEXT: %c1_i32 = constant 1 : i32
9 %0 = constant 1 : i32
12 %1 = constant 1 : i32
18 // CHECK: %c0 = constant 0 : index
19 %c0 = constant 0 : index
20 %c1 = constant 0 : index
58 // CHECK: %c0_i32 = constant 0 : i32
59 // CHECK: %c1_i32 = constant 1 : i32
60 %0 = constant 0 : i32
61 %1 = constant 1 : i32
[all …]
/external/mesa3d/src/compiler/glsl/
Dlower_packing_builtins.cpp195 constant(T x) in constant() function in __anon7184e4c50111::lower_packing_builtins_visitor
197 return factory.constant(x); in constant()
218 return bitfield_insert(bit_and(swizzle_x(u), constant(0xffffu)), in pack_uvec2_to_uint()
220 constant(16u), in pack_uvec2_to_uint()
221 constant(16u)); in pack_uvec2_to_uint()
225 return bit_or(lshift(swizzle_y(u), constant(16u)), in pack_uvec2_to_uint()
226 bit_and(swizzle_x(u), constant(0xffffu))); in pack_uvec2_to_uint()
250 bit_and(swizzle_x(u), constant(0xffu)), in pack_uvec4_to_uint()
251 swizzle_y(u), constant(8u), constant(8u)), in pack_uvec4_to_uint()
252 swizzle_z(u), constant(16u), constant(8u)), in pack_uvec4_to_uint()
[all …]
/external/llvm-project/clang/test/Sema/
Darm_inline_asm_constraints.c13 : [ constant ] "j"(-1), [ input ] "r"(i) in test_j()
21 : [ constant ] "j"(0), [ input ] "r"(i) in test_j()
29 : [ constant ] "j"(65535), [ input ] "r"(i) in test_j()
37 : [ constant ] "j"(65536), [ input ] "r"(i) in test_j()
53 : [ constant ] "I"(-1), [ input ] "r"(i) in test_I()
58 : [ constant ] "I"(0), [ input ] "r"(i) in test_I()
63 : [ constant ] "I"(255), [ input ] "r"(i) in test_I()
68 : [ constant ] "I"(256), [ input ] "r"(i) in test_I()
80 : [ constant ] "J"(-4096), [ input ] "r"(i) in test_J()
89 : [ constant ] "J"(-4095), [ input ] "r"(i) in test_J()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/
Dconst-fold.mlir5 %0 = constant dense<4.5> : tensor<f32>
6 %1 = constant dense<1.5> : tensor<f32>
8 %2 = constant dense< 3.5> : tensor<4xf32>
9 %3 = constant dense<-0.5> : tensor<4xf32>
11 // CHECK: %[[CST:.*]] = constant dense<3.500000e+00> : tensor<4xf32>
12 // CHECK: %[[CST_0:.*]] = constant dense<-5.000000e-01> : tensor<4xf32>
13 // CHECK: %[[CST_1:.*]] = constant dense<6.000000e+00> : tensor<f32>
14 // CHECK: %[[CST_2:.*]] = constant dense<4.000000e+00> : tensor<4xf32>
15 // CHECK: %[[CST_3:.*]] = constant dense<5.000000e+00> : tensor<4xf32>
16 // CHECK: %[[CST_4:.*]] = constant dense<3.000000e+00> : tensor<4xf32>
[all …]
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/translate/
Dtypes.hlotxt7 // CHECK-NEXT: %[[VAL_0:.*]] = mhlo.constant dense<1.000000e+00> : tensor<f32>
8 %constant.0 = f32[] constant(1)
10 // CHECK-NEXT: %[[VAL_1:.*]] = mhlo.constant dense<1.000000e+00> : tensor<f64>
11 %constant.1 = f64[] constant(1)
13 // CHECK-NEXT: %[[VAL_2:.*]] = mhlo.constant dense<1> : tensor<i8>
14 %constant.2 = s8[] constant(1)
16 // CHECK-NEXT: %[[VAL_3:.*]] = mhlo.constant dense<1> : tensor<i16>
17 %constant.3 = s16[] constant(1)
19 // CHECK-NEXT: %[[VAL_4:.*]] = mhlo.constant dense<1> : tensor<i32>
20 %constant.4 = s32[] constant(1)
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser_test.cc106 ROOT %constant = pred[2,3]{1,0} constant({ { 0, 1, 0 }, { 1, 0, 1 } }) in CreateTestCases()
118 ROOT %constant = s32[] constant(-42) in CreateTestCases()
130 ROOT %constant = f32[] constant(42), backend_config="this is a configuration" in CreateTestCases()
141 ROOT %constant = f32[0]{0} constant({}) in CreateTestCases()
152 ROOT %constant = f32[2,0,4,3]{3,2,1,0} constant({ { /*i0=0*/ }, { /*i0=1*/ } }) in CreateTestCases()
163 …ROOT %constant = f32[3,2,1,1]{3,2,1,0} constant({ { /*i0=0*/ { /*i1=0*/ {-1} }, { /*i1=1*/ {4.1} }… in CreateTestCases()
174 %constant = f32[6]{0} constant({nan, 7, nan, -1, inf, -inf}) in CreateTestCases()
175 ROOT %is-finite = pred[6]{0} is-finite(f32[6]{0} %constant) in CreateTestCases()
186 ROOT %constant = f16[] constant(500) in CreateTestCases()
197 ROOT %constant = bf16[] constant(500) in CreateTestCases()
[all …]
/external/angle/src/compiler/translator/
DConstantUnion.cpp135 bool TConstantUnion::cast(TBasicType newType, const TConstantUnion &constant) in cast() argument
140 switch (constant.type) in cast()
143 setFConst(static_cast<float>(constant.getIConst())); in cast()
146 setFConst(static_cast<float>(constant.getUConst())); in cast()
149 setFConst(static_cast<float>(constant.getBConst())); in cast()
152 setFConst(static_cast<float>(constant.getFConst())); in cast()
159 switch (constant.type) in cast()
162 setIConst(static_cast<int>(constant.getIConst())); in cast()
165 setIConst(static_cast<int>(constant.getUConst())); in cast()
168 setIConst(static_cast<int>(constant.getBConst())); in cast()
[all …]
/external/proguard/src/proguard/classfile/editor/
DConstantPoolEditor.java24 import proguard.classfile.constant.*;
61 Constant constant = constantPool[index]; in addIntegerConstant() local
63 if (constant != null && in addIntegerConstant()
64 constant.getTag() == ClassConstants.CONSTANT_Integer) in addIntegerConstant()
66 IntegerConstant integerConstant = (IntegerConstant)constant; in addIntegerConstant()
90 Constant constant = constantPool[index]; in addLongConstant() local
92 if (constant != null && in addLongConstant()
93 constant.getTag() == ClassConstants.CONSTANT_Long) in addLongConstant()
95 LongConstant longConstant = (LongConstant)constant; in addLongConstant()
120 Constant constant = constantPool[index]; in addFloatConstant() local
[all …]
/external/llvm-project/mlir/test/Conversion/SPIRVToLLVM/
Dconstant-op-to-llvm.mlir4 // spv.constant
9 // CHECK: llvm.mlir.constant(true) : !llvm.i1
10 %0 = spv.constant true
11 // CHECK: llvm.mlir.constant(false) : !llvm.i1
12 %1 = spv.constant false
18 // CHECK: llvm.mlir.constant(dense<[true, false]> : vector<2xi1>) : !llvm.vec<2 x i1>
19 %0 = spv.constant dense<[true, false]> : vector<2xi1>
20 // CHECK: llvm.mlir.constant(dense<false> : vector<3xi1>) : !llvm.vec<3 x i1>
21 %1 = spv.constant dense<false> : vector<3xi1>
27 // CHECK: llvm.mlir.constant(0 : i8) : !llvm.i8
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_map_flat_values_op_test.py47 rt = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5], [6]])
56 tensor = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
63 x = ragged_factory_ops.constant([[3, 1, 4], [], [1, 5]])
64 y = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
69 y = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
74 condition = ragged_factory_ops.constant(
76 x = ragged_factory_ops.constant([['a', 'b', 'c'], [], ['d', 'e']])
77 y = ragged_factory_ops.constant([['A', 'B', 'C'], [], ['D', 'E']])
84 x = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
85 y = ragged_factory_ops.constant([[10, 20, 30], [], [40, 50]])
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_code.c59 unsigned rc_constants_add(struct rc_constant_list * c, struct rc_constant * constant) in rc_constants_add() argument
77 c->Constants[index] = *constant; in rc_constants_add()
90 struct rc_constant constant; in rc_constants_add_state() local
100 memset(&constant, 0, sizeof(constant)); in rc_constants_add_state()
101 constant.Type = RC_CONSTANT_STATE; in rc_constants_add_state()
102 constant.Size = 4; in rc_constants_add_state()
103 constant.u.State[0] = state0; in rc_constants_add_state()
104 constant.u.State[1] = state1; in rc_constants_add_state()
106 return rc_constants_add(c, &constant); in rc_constants_add_state()
117 struct rc_constant constant; in rc_constants_add_immediate_vec4() local
[all …]
/external/llvm-project/mlir/test/Dialect/SPIRV/
Dcanonicalize.mlir8 // CHECK: %[[INDEX:.*]] = spv.constant 0
12 %c0 = spv.constant 0: i32
23 // CHECK: %[[INDEX:.*]] = spv.constant 0
29 %c0 = spv.constant 0: i32
42 // CHECK: %[[INDEX:.*]] = spv.constant 1
49 %c1 = spv.constant 1: i32
95 // CHECK: spv.constant 42 : i32
96 // CHECK: spv.constant -33 : i32
97 // CHECK: spv.constant 6 : i32
98 %0 = spv.constant dense<[42, -33, 6]> : vector<3xi32>
[all …]
/external/tensorflow/tensorflow/python/keras/
Dlosses_test.py197 y_true = constant_op.constant([[1., 9.], [2., 5.]])
198 y_pred = constant_op.constant([[4., 8.], [12., 3.]])
199 sample_weight = constant_op.constant([1.2, 0.5])
221 y_true = constant_op.constant([[1., 9.], [2., 5.]])
222 y_pred = constant_op.constant([[4., 8.], [12., 3.]])
223 sample_weight = constant_op.constant([1.2, 0.5])
242 y = constant_op.constant([1])
253 logits = constant_op.constant([[-30., 30.]])
256 y_true = constant_op.constant([[0., 1.]])
264 logits = constant_op.constant([[-5., 0., 5.]])
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py27 ResolveConstant(named_value.constant)
28 named_value.resolved_value = named_value.constant.resolved_value
31 def ResolveConstant(constant): argument
32 if constant in computed:
34 if constant in in_progress:
35 raise RuntimeError('Circular dependency for constant: %s' % constant.name)
36 in_progress.add(constant)
37 if isinstance(constant.value, (mojom.EnumValue, mojom.ConstantValue)):
38 resolved_value = GetResolvedValue(constant.value)
40 resolved_value = expression_to_text(constant.value)
[all …]

12345678910>>...231