Home
last modified time | relevance | path

Searched refs:constant1 (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_reachability_test.cc103 auto constant1 = builder.AddInstruction( in TEST_F() local
108 r0f32, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
125 EXPECT_TRUE(reachability->IsReachable(constant1, constant1)); in TEST_F()
126 EXPECT_FALSE(reachability->IsReachable(constant1, constant2)); in TEST_F()
127 EXPECT_TRUE(reachability->IsReachable(constant1, add)); in TEST_F()
128 EXPECT_FALSE(reachability->IsReachable(constant1, negate)); in TEST_F()
129 EXPECT_TRUE(reachability->IsReachable(constant1, exp)); in TEST_F()
130 EXPECT_TRUE(reachability->IsReachable(constant1, mul)); in TEST_F()
131 EXPECT_TRUE(reachability->IsReachable(constant1, copy)); in TEST_F()
133 EXPECT_FALSE(reachability->IsReachable(constant2, constant1)); in TEST_F()
[all …]
Dtuple_points_to_analysis_test.cc127 auto constant1 = builder.AddInstruction( in TEST_F() local
132 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F()
135 EXPECT_EQ(1, points_to_analysis_->GetPointsToSet(constant1).size()); in TEST_F()
137 points_to_analysis_->GetPointsToSet(constant1).element({}), {constant1}); in TEST_F()
139 points_to_analysis_->GetPointsToSet(constant1).tuple_sources({}).empty()); in TEST_F()
155 {constant1, constant2, tuple}); in TEST_F()
159 points_to_analysis_->GetPointsToSet(tuple).element({0}), {constant1}); in TEST_F()
166 *GetBuffer(constant1, {}), {0})); in TEST_F()
171 EXPECT_TRUE(tuple_points_to_set.ContainsBuffer(*GetBuffer(constant1, {}))); in TEST_F()
180 auto constant1 = builder.AddInstruction( in TEST_F() local
[all …]
Dhlo_alias_analysis_test.cc120 auto constant1 = builder.AddInstruction( in TEST_F() local
125 scalar_shape_, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
135 for (const HloInstruction* instruction : {constant1, constant2, add}) { in TEST_F()
416 auto constant1 = builder.AddInstruction( in TEST_F() local
421 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F()
428 EXPECT_THAT(analysis.GetUniqueBufferAt(constant1).ComputePositions(), in TEST_F()
429 UnorderedElementsAre(HloPosition{constant1, {}}, in TEST_F()
456 auto constant1 = builder.AddInstruction( in TEST_F() local
461 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F()
469 EXPECT_THAT(analysis.GetUniqueBufferAt(constant1).ComputePositions(), in TEST_F()
[all …]
Dhlo_dce_test.cc55 auto constant1 = builder.AddInstruction( in TEST_F() local
60 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
165 auto constant1 = builder.AddInstruction( in TEST_F() local
172 constant1->shape(), HloOpcode::kNegate, constant1)); in TEST_F()
174 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
180 constant1->shape(), HloOpcode::kNegate, constant1)); in TEST_F()
183 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
187 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
Dhlo_dataflow_analysis_test.cc107 auto constant1 = builder.AddInstruction( in TEST_P() local
112 scalar_shape_, HloOpcode::kAdd, constant1, constant2)); in TEST_P()
121 EXPECT_TRUE(analysis.ValueIsDefinedAt(constant1)); in TEST_P()
127 EXPECT_THAT(analysis.GetValueDefinedAt(constant1).positions(), in TEST_P()
128 UnorderedElementsAre(HloPosition{constant1, {}})); in TEST_P()
135 EXPECT_THAT(analysis.GetValueDefinedAt(constant1).uses(), in TEST_P()
142 EXPECT_FALSE(analysis.GetValueDefinedAt(constant1).live_out_of_module()); in TEST_P()
206 auto constant1 = builder.AddInstruction( in TEST_P() local
211 HloInstruction::CreateTuple({constant1, constant2})); in TEST_P()
213 HloInstruction::CreateTuple({tuple, tuple, constant1})); in TEST_P()
[all …]
Dhlo_cse_test.cc55 auto constant1 = builder.AddInstruction( in TEST_F() local
60 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
83 auto constant1 = builder.AddInstruction( in TEST_F() local
90 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
96 EXPECT_THAT(add, op::Add(constant1, constant2)); in TEST_F()
103 EXPECT_THAT(first_operand, ::testing::AnyOf(constant1, constant2)); in TEST_F()
115 auto constant1 = builder.AddInstruction( in TEST_F() local
122 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
128 EXPECT_THAT(add, op::Add(constant1, constant2)); in TEST_F()
134 EXPECT_THAT(add, op::Add(constant1, constant2)); in TEST_F()
[all …]
Dhlo_computation_test.cc171 auto constant1 = builder.AddInstruction( in TEST_F() local
182 UnorderedElementsAre(constant1, constant2, constant3, constant4)); in TEST_F()
189 auto constant1 = builder.AddInstruction( in TEST_F() local
196 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
200 r0f32_, HloOpcode::kAdd, constant1, constant3)); in TEST_F()
205 EXPECT_THAT(post_order, UnorderedElementsAre(constant1, constant2, constant3, in TEST_F()
213 auto constant1 = builder.AddInstruction( in TEST_F() local
221 constant1, constant2)); in TEST_F()
225 constant1, constant3)); in TEST_F()
276 auto constant1 = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F() local
[all …]
Dhlo_subcomputation_unification_test.cc103 auto constant1 = builder.AddInstruction( in TEST_F() local
108 HloInstruction::CreateCall(r0s32_, {constant1, constant2}, callee1)); in TEST_F()
110 HloInstruction::CreateCall(r0s32_, {constant1, constant2}, callee2)); in TEST_F()
Dlayout_assignment_test.cc171 auto constant1 = builder.AddInstruction( in TEST_F() local
176 ashape, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
218 auto constant1 = builder.AddInstruction( in TEST_F() local
222 HloInstruction::CreateTuple({constant0, constant1})); in TEST_F()
240 LayoutUtil::LayoutsInShapesEqual(constant0->shape(), constant1->shape())); in TEST_F()
246 ShapeUtil::GetTupleElementShape(tuple->shape(), 1), constant1->shape())); in TEST_F()
255 auto constant1 = builder.AddInstruction( in TEST_F() local
259 HloInstruction::CreateTuple({constant0, constant1})); in TEST_F()
261 HloInstruction::CreateTuple({constant0, constant1})); in TEST_F()
275 ShapeUtil::MakeTupleShape({constant0->shape(), constant1->shape()}); in TEST_F()
Dflatten_call_graph_test.cc237 auto constant1 = builder.AddInstruction( in TEST_F() local
242 kScalarShape, pred, constant1, sub_computation, constant2, in TEST_F()
Dcopy_insertion_test.cc169 HloInstruction* constant1 = builder.AddInstruction( in TEST_F() local
180 ShapeUtil::MakeShape(F32, {}), HloOpcode::kAdd, constant1, y)); in TEST_F()
192 op::Tuple(op::Copy(constant2), op::Copy(x), op::Add(constant1, y))); in TEST_F()
199 HloInstruction* constant1 = builder.AddInstruction( in TEST_F() local
207 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F()
216 EXPECT_THAT(constant1->users(), UnorderedElementsAre(tuple1)); in TEST_F()
373 HloInstruction* constant1 = builder.AddInstruction( in TEST_F() local
379 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F()
381 HloInstruction::CreateTuple({constant2, constant1})); in TEST_F()
1535 auto constant1 = builder.AddInstruction( in TEST_F() local
[all …]
Dhlo_instruction_test.cc647 auto constant1 = builder.AddInstruction( in TEST_F() local
652 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
658 EXPECT_THAT(fusion->operands(), ElementsAre(constant1, constant2)); in TEST_F()
659 EXPECT_THAT(constant1->users(), ElementsAre(fusion)); in TEST_F()
Dbuffer_assignment_test.cc2438 auto constant1 = builder.AddInstruction( in TEST_F() local
2441 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, param, constant1)); in TEST_F()
Dalgebraic_simplifier_test.cc649 HloInstruction* constant1 = builder.AddInstruction( in TEST_F() local
655 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, param0, constant1)); in TEST_F()
667 m::Add(m::Op().Is(constant1), m::Op().Is(constant2))))); in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_record_synonymous_constants.cpp81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local
85 if (!constant1 || !constant2) { in AreEquivalentConstants()
96 if (constant1->AsNullConstant()) { in AreEquivalentConstants()
101 return constant1->IsZero(); in AreEquivalentConstants()
105 if (auto scalar1 = constant1->AsScalarConstant()) { in AreEquivalentConstants()
113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_record_synonymous_constants.cpp81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local
85 if (!constant1 || !constant2) { in AreEquivalentConstants()
96 if (constant1->AsNullConstant()) { in AreEquivalentConstants()
101 return constant1->IsZero(); in AreEquivalentConstants()
105 if (auto scalar1 = constant1->AsScalarConstant()) { in AreEquivalentConstants()
113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/examples/
DFibonacciMaker.java44 Local<Integer> constant1 = code.newLocal(TypeId.INT); in main() local
52 code.loadConstant(constant1, 1); in main()
56 code.op(BinaryOp.SUBTRACT, a, i, constant1); in main()
/external/deqp-deps/amber/tests/cases/
Dcompute_push_constant_and_ssbo.amber26 uint constant1; // 12
36 data_set0_binding0[offset++] = constant1;
Dcompute_push_constant_and_ssbo.vkscript25 uint constant1; // 12
35 data_set0_binding0[offset++] = constant1;
/external/eigen/unsupported/test/
Dcxx11_tensor_const.cpp40 TensorMap<Tensor<const int, 3> > constant1(random.data(), 2, 3, 7); in test_assign_of_const_tensor() local
44 Tensor<int, 2> result1 = constant1.chip(0, 2); in test_assign_of_const_tensor()
/external/libvpx/libvpx/vpx_dsp/arm/
Dfdct32x32_neon.c218 const tran_coef_t constant1, in butterfly_two_coeff() argument
222 const int32x4_t a2 = vmull_n_s16(vget_low_s16(a), constant1); in butterfly_two_coeff()
223 const int32x4_t a3 = vmull_n_s16(vget_high_s16(a), constant1); in butterfly_two_coeff()
226 const int32x4_t diff0 = vmlsl_n_s16(a0, vget_low_s16(b), constant1); in butterfly_two_coeff()
227 const int32x4_t diff1 = vmlsl_n_s16(a1, vget_high_s16(b), constant1); in butterfly_two_coeff()
619 const int32x4_t b_hi, const int32_t constant0, const int32_t constant1, in butterfly_two_coeff_s32() argument
624 const int32x4_t a2 = vmulq_n_s32(a_lo, constant1); in butterfly_two_coeff_s32()
625 const int32x4_t a3 = vmulq_n_s32(a_hi, constant1); in butterfly_two_coeff_s32()
628 const int32x4_t diff0 = vmlsq_n_s32(a0, b_lo, constant1); in butterfly_two_coeff_s32()
629 const int32x4_t diff1 = vmlsq_n_s32(a1, b_hi, constant1); in butterfly_two_coeff_s32()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/
Dsignature_def.mlir37 // CHECK-NEXT: name: "std.constant1",