Home
last modified time | relevance | path

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

12345678910>>...225

/external/deqp-deps/glslang/glslang/Include/
DConstantUnion.h210 bool operator==(const TConstUnion& constant) const
212 if (constant.type != type)
217 if (constant.i16Const == i16Const)
222 if (constant.u16Const == u16Const)
227 if (constant.i8Const == i8Const)
232 if (constant.u8Const == u8Const)
237 if (constant.iConst == iConst)
242 if (constant.uConst == uConst)
247 if (constant.i64Const == i64Const)
252 if (constant.u64Const == u64Const)
[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/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/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)]
73 constant_op.constant([0, 4, 7]),
74 constant_op.constant([1, 6, 2, 3, 5])
77 math_ops.cast(constant_op.constant([0, 40, 70]), dtype=dtype),
79 constant_op.constant([10, 60, 20, 30, 50]), dtype=dtype)
88 indices = [constant_op.constant([1, 6, 2, 3, 5, 0, 4, 7])]
89 data = [constant_op.constant([10, 60, 20, 30, 50, 0, 40, 70])]
[all …]
Dlosses_test.py46 self._predictions = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
47 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
74 constant_op.constant(weights))
79 weights = constant_op.constant((1.2, 0.0), shape=(2, 1))
85 weights = constant_op.constant([1.2, 0.0], shape=[2, 1])
91 weights = constant_op.constant([3, 6, 5, 0, 4, 2], shape=[2, 3])
97 weights = constant_op.constant([0, 0, 0, 0, 0, 2], shape=[2, 3])
112 predictions = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
113 labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
120 logits = constant_op.constant([[10.0, 0.0, 0.0], [0.0, 10.0, 0.0],
[all …]
Dcheck_ops_test.py48 c1 = constant_op.constant(-1, name="minus_one", dtype=dtypes.int32)
49 c2 = constant_op.constant(2, name="two", dtype=dtypes.int32)
50 c3 = constant_op.constant([3., 3.], name="three", dtype=dtypes.float32)
51 c4 = constant_op.constant([3., 3.5], name="three_and_a_half",
110 tensor = constant_op.constant(1)
142 constant_op.constant([11, 22]), constant_op.constant([1, 2])
148 generator_of_stuff = (constant_op.constant([11, 22]), constant_op.constant(
157 small = constant_op.constant([1, 2], name="small")
164 const_true = constant_op.constant(True, name="true")
165 const_false = constant_op.constant(False, name="false")
[all …]
/external/mesa3d/src/compiler/glsl/
Dlower_packing_builtins.cpp195 constant(T x) in constant() function in __anonde43f6270111::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/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser_test.cc98 ROOT %constant = pred[2,3]{1,0} constant({ { 0, 1, 0 }, { 1, 0, 1 } }) in CreateTestCases()
110 ROOT %constant = s32[] constant(-42) in CreateTestCases()
122 ROOT %constant = f32[] constant(42), backend_config="this is a configuration" in CreateTestCases()
133 ROOT %constant = f32[0]{0} constant({}) in CreateTestCases()
144 ROOT %constant = f32[2,0,4,3]{3,2,1,0} constant({ { /*i0=0*/ }, { /*i0=1*/ } }) in CreateTestCases()
155 …ROOT %constant = f32[3,2,1,1]{3,2,1,0} constant({ { /*i0=0*/ { /*i1=0*/ {-1} }, { /*i1=1*/ {4.1} }… in CreateTestCases()
166 %constant = f32[6]{0} constant({nan, 7, nan, -1, inf, -inf}) in CreateTestCases()
167 ROOT %is-finite = pred[6]{0} is-finite(f32[6]{0} %constant) in CreateTestCases()
178 ROOT %constant = f16[] constant(500) in CreateTestCases()
189 ROOT %constant = bf16[] constant(500) in CreateTestCases()
[all …]
/external/tensorflow/tensorflow/contrib/kernel_methods/python/
Dlosses_test.py36 logits = constant_op.constant([-1.0, 2.1], shape=(2,))
37 labels = constant_op.constant([0, 1])
44 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
45 labels = constant_op.constant([1, 0], shape=(1, 1, 2))
52 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
53 labels = constant_op.constant([1, 0], shape=(2,))
54 weights = constant_op.constant([1.5, 0.2], shape=(2, 1, 1))
61 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
62 labels = constant_op.constant([1, 0], dtype=dtypes.float32)
69 logits = constant_op.constant([-1.0, 2.1], shape=(2, 1))
[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/tensorflow/tensorflow/contrib/losses/python/losses/
Dloss_ops_test.py42 self._predictions = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
43 self._labels = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
71 constant_op.constant(weights))
76 weights = constant_op.constant([1.2, 0.0], shape=[2,])
83 weights = constant_op.constant([1.2, 0.0], shape=[2, 1])
90 weights = constant_op.constant([3, 6, 5, 0, 4, 2], shape=[2, 3])
97 weights = constant_op.constant([0, 0, 0, 0, 0, 2], shape=[2, 3])
114 logits = constant_op.constant([[10.0, 0.0, 0.0],
117 labels = constant_op.constant([[1, 0, 0],
126 logits = constant_op.constant([[10.0, 0.0, 0.0],
[all …]
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_estimator_test.py46 'example_id': constant_op.constant(['1', '2']),
47 'maintenance_cost': constant_op.constant([500.0, 200.0]),
48 'sq_footage': constant_op.constant([[800.0], [600.0]]),
49 'weights': constant_op.constant([[1.0], [1.0]])
50 }, constant_op.constant([[0], [1]])
72 constant_op.constant(['1', '2']),
74 constant_op.constant([[500.0, 800.0], [200.0, 600.0]])
75 }, constant_op.constant([[0], [1]])
91 'example_id': constant_op.constant(['1', '2', '3']),
92 'price': constant_op.constant([600.0, 1000.0, 400.0]),
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dsvm_test.py35 'example_id': constant_op.constant(['1', '2', '3']),
36 'feature1': constant_op.constant([[0.0], [1.0], [3.0]]),
37 'feature2': constant_op.constant([[1.0], [-1.2], [1.0]]),
38 }, constant_op.constant([[1], [0], [1]])
61 'example_id': constant_op.constant(['1', '2', '3']),
62 'feature1': constant_op.constant([0.5, 1.0, 1.0]),
63 'feature2': constant_op.constant([1.0, -1.0, 0.5]),
64 }, constant_op.constant([1, 0, 1])
93 constant_op.constant(['1', '2', '3']),
95 constant_op.constant([[0.5, 1.0], [1.0, -1.0], [1.0, 0.5]]),
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_map_flat_values_op_test.py48 rt = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5], [6]])
57 tensor = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
64 x = ragged_factory_ops.constant([[3, 1, 4], [], [1, 5]])
65 y = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
70 y = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
75 condition = ragged_factory_ops.constant(
77 x = ragged_factory_ops.constant([['a', 'b', 'c'], [], ['d', 'e']])
78 y = ragged_factory_ops.constant([['A', 'B', 'C'], [], ['D', 'E']])
85 x = ragged_factory_ops.constant([[1, 2, 3], [], [4, 5]])
86 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/tensorflow/tensorflow/python/eager/
Dops_test.py46 three = constant_op.constant(3)
47 five = constant_op.constant(5)
54 three = constant_op.constant([[3.]]).gpu()
55 five = constant_op.constant([[5.]]).gpu()
60 three = constant_op.constant(3.0)
66 three = constant_op.constant(3.0)
67 almost_three = constant_op.constant(2.8)
73 three = constant_op.constant(3)
74 four = constant_op.constant(4)
79 three = constant_op.constant([[3]])
[all …]
/external/tensorflow/tensorflow/python/keras/
Dmetrics_confusion_matrix_test.py56 y_true = constant_op.constant(((0, 1, 0, 1, 0), (0, 0, 1, 1, 1),
58 y_pred = constant_op.constant(((0, 0, 1, 1, 0), (1, 1, 1, 1, 1),
69 y_true = constant_op.constant(((0, 1, 0, 1, 0), (0, 0, 1, 1, 1),
71 y_pred = constant_op.constant(((0, 0, 1, 1, 0), (1, 1, 1, 1, 1),
73 sample_weight = constant_op.constant((1., 1.5, 2., 2.5))
81 y_pred = constant_op.constant(((0.9, 0.2, 0.8, 0.1), (0.2, 0.9, 0.7, 0.6),
83 y_true = constant_op.constant(((0, 1, 1, 0), (1, 0, 0, 0), (0, 0, 0, 0),
95 y_pred = constant_op.constant(((0.9, 0.2, 0.8, 0.1), (0.2, 0.9, 0.7, 0.6),
97 y_true = constant_op.constant(((0, 1, 1, 0), (1, 0, 0, 0), (0, 0, 0, 0),
136 y_true = constant_op.constant(((0, 1, 0, 1, 0), (0, 0, 1, 1, 1),
[all …]
Dlosses_test.py191 y_true = constant_op.constant([[1., 9.], [2., 5.]])
192 y_pred = constant_op.constant([[4., 8.], [12., 3.]])
193 sample_weight = constant_op.constant([1.2, 0.5])
214 y_true = constant_op.constant([4, 8, 12, 8, 1, 3], shape=(2, 3))
220 y_true = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
221 y_pred = constant_op.constant([4, 8, 12, 8, 1, 3],
229 y_true = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
230 y_pred = constant_op.constant([4, 8, 12, 8, 1, 3],
238 y_true = constant_op.constant([1, 9, 2, -5, -2, 6], shape=(2, 3))
239 y_pred = constant_op.constant([4, 8, 12, 8, 1, 3],
[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 …]
/external/tensorflow/tensorflow/contrib/nn/python/ops/
Dsampling_ops_test.py49 return constant_op.constant([
64 constant_op.constant([
68 constant_op.constant([
72 constant_op.constant([
76 constant_op.constant([
80 constant_op.constant([
88 constant_op.constant([
92 constant_op.constant([
96 constant_op.constant([
100 constant_op.constant([
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DDescendingVisitor.java276 public void visitConstantClass(final ConstantClass constant) in visitConstantClass() argument
278 stack.push(constant); in visitConstantClass()
279 constant.accept(visitor); in visitConstantClass()
284 public void visitConstantDouble(final ConstantDouble constant) in visitConstantDouble() argument
286 stack.push(constant); in visitConstantDouble()
287 constant.accept(visitor); in visitConstantDouble()
292 public void visitConstantFieldref(final ConstantFieldref constant) in visitConstantFieldref() argument
294 stack.push(constant); in visitConstantFieldref()
295 constant.accept(visitor); in visitConstantFieldref()
300 public void visitConstantFloat(final ConstantFloat constant) in visitConstantFloat() argument
[all …]
/external/emma/core/java12/com/vladium/jcd/cls/
DConstantCollection.java15 import com.vladium.jcd.cls.constant.*;
53 final CONSTANT_info constant = (CONSTANT_info) m_constants.get (i); in find() local
55 if ((constant != null) && (constant.tag () == type) && comparator.equals (constant)) in find()
98 final CONSTANT_info constant = (CONSTANT_info) m_constants.get (c); in clone() local
99 _clone.m_constants.add (constant == null ? null : constant.clone ()); in clone()
136 public CONSTANT_info set (final int index, final CONSTANT_info constant) in set() argument
144 if (result.width () != constant.width ()) in set()
147 m_constants.set (zindex, constant); in set()
163 if (constant instanceof CONSTANT_Utf8_info) in set()
164 m_CONSTANT_Utf8_index.put (((CONSTANT_Utf8_info) constant).m_value, zindex); in set()
[all …]
/external/tensorflow/tensorflow/python/autograph/converters/
Dcontrol_flow_test.py39 constant_op.constant) as result:
53 self.assertTransformedResult(test_fn, constant_op.constant(5), (10, 5, 5))
71 self.assertTransformedResult(test_fn, constant_op.constant(5),
82 self.assertTransformedResult(test_fn, constant_op.constant(5), 0)
89 self.x = constant_op.constant(3)
99 test_fn, constant_op.constant(5), 0, symbols={'TestClass': TestClass})
109 tc = TestClass([constant_op.constant(0)])
111 tc = TestClass([constant_op.constant(3)])
118 test_fn, constant_op.constant(5), 4, symbols=ns)
125 self.x = [constant_op.constant(3)]
[all …]
/external/proguard/src/proguard/classfile/instruction/
DSimpleInstruction.java35 public int constant; field in SimpleInstruction
56 public SimpleInstruction(byte opcode, int constant) in SimpleInstruction() argument
59 this.constant = constant; in SimpleInstruction()
71 this.constant = simpleInstruction.constant; in copy()
155 opcode = (byte)(InstructionConstants.OP_ICONST_0 + constant); in shrink()
168 opcode = (byte)(InstructionConstants.OP_LCONST_0 + constant); in shrink()
174 opcode = (byte)(InstructionConstants.OP_FCONST_0 + constant); in shrink()
179 opcode = (byte)(InstructionConstants.OP_DCONST_0 + constant); in shrink()
191 constant = constantSize == 0 ? in readInfo()
206 writeSignedValue(code, offset, constant, constantSize); in writeInfo()
[all …]
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dtarget_column_test.py35 prediction = constant_op.constant([[1.], [1.], [3.]])
36 labels = constant_op.constant([[0.], [1.], [1.]])
44 features = {"label_weight": constant_op.constant([[2.], [5.], [0.]])}
45 prediction = constant_op.constant([[1.], [1.], [3.]])
46 labels = constant_op.constant([[0.], [1.], [1.]])
62 logits = constant_op.constant([[1.], [1.]])
63 labels = constant_op.constant([[1.], [0.]])
75 features = {"label_weight": constant_op.constant([[1.], [0.]])}
76 logits = constant_op.constant([[1.], [1.]])
77 labels = constant_op.constant([[1.], [0.]])
[all …]

12345678910>>...225