/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_reachability_test.cc | 105 auto constant2 = builder.AddInstruction( in TEST_F() local 108 r0f32, HloOpcode::kAdd, constant1, constant2)); in TEST_F() 110 HloInstruction::CreateUnary(r0f32, HloOpcode::kNegate, constant2)); in TEST_F() 126 EXPECT_FALSE(reachability->IsReachable(constant1, constant2)); in TEST_F() 133 EXPECT_FALSE(reachability->IsReachable(constant2, constant1)); in TEST_F() 134 EXPECT_TRUE(reachability->IsReachable(constant2, constant2)); in TEST_F() 135 EXPECT_TRUE(reachability->IsReachable(constant2, add)); in TEST_F() 136 EXPECT_TRUE(reachability->IsReachable(constant2, negate)); in TEST_F() 137 EXPECT_TRUE(reachability->IsReachable(constant2, exp)); in TEST_F() 138 EXPECT_TRUE(reachability->IsReachable(constant2, mul)); in TEST_F() [all …]
|
D | tuple_points_to_analysis_test.cc | 129 auto constant2 = builder.AddInstruction( in TEST_F() local 132 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F() 142 EXPECT_EQ(1, points_to_analysis_->GetPointsToSet(constant2).size()); in TEST_F() 144 points_to_analysis_->GetPointsToSet(constant2).element({}), {constant2}); in TEST_F() 146 points_to_analysis_->GetPointsToSet(constant2).tuple_sources({}).empty()); in TEST_F() 155 {constant1, constant2, tuple}); in TEST_F() 161 points_to_analysis_->GetPointsToSet(tuple).element({1}), {constant2}); in TEST_F() 168 *GetBuffer(constant2, {}), {1})); in TEST_F() 170 *GetBuffer(constant2, {}), {0})); in TEST_F() 172 EXPECT_TRUE(tuple_points_to_set.ContainsBuffer(*GetBuffer(constant2, {}))); in TEST_F() [all …]
|
D | hlo_alias_analysis_test.cc | 122 auto constant2 = 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() 418 auto constant2 = builder.AddInstruction( in TEST_F() local 421 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F() 431 EXPECT_THAT(analysis.GetUniqueBufferAt(constant2).ComputePositions(), in TEST_F() 432 UnorderedElementsAre(HloPosition{constant2, {}}, in TEST_F() 458 auto constant2 = builder.AddInstruction( in TEST_F() local 461 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F() 463 scalar_shape_, {call1, constant2}, called_computation)); in TEST_F() [all …]
|
D | hlo_dataflow_analysis_test.cc | 109 auto constant2 = builder.AddInstruction( in TEST_P() local 112 scalar_shape_, HloOpcode::kAdd, constant1, constant2)); in TEST_P() 122 EXPECT_TRUE(analysis.ValueIsDefinedAt(constant2)); in TEST_P() 129 EXPECT_THAT(analysis.GetValueDefinedAt(constant2).positions(), in TEST_P() 130 UnorderedElementsAre(HloPosition{constant2, {}})); in TEST_P() 137 EXPECT_THAT(analysis.GetValueDefinedAt(constant2).uses(), in TEST_P() 143 EXPECT_FALSE(analysis.GetValueDefinedAt(constant2).live_out_of_module()); in TEST_P() 208 auto constant2 = builder.AddInstruction( in TEST_P() local 211 HloInstruction::CreateTuple({constant1, constant2})); in TEST_P() 238 EXPECT_TRUE(analysis.GetValueDefinedAt(constant2).uses().empty()); in TEST_P() [all …]
|
D | hlo_cse_test.cc | 57 auto constant2 = builder.AddInstruction( in TEST_F() local 60 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 86 auto constant2 = 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() 118 auto constant2 = 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 …]
|
D | hlo_computation_test.cc | 173 auto constant2 = builder.AddInstruction( in TEST_F() local 182 UnorderedElementsAre(constant1, constant2, constant3, constant4)); in TEST_F() 191 auto constant2 = builder.AddInstruction( in TEST_F() local 196 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F() 198 r0f32_, HloOpcode::kAdd, constant2, constant3)); in TEST_F() 205 EXPECT_THAT(post_order, UnorderedElementsAre(constant1, constant2, constant3, in TEST_F() 215 auto constant2 = builder.AddInstruction( in TEST_F() local 221 constant1, constant2)); in TEST_F() 223 constant2, constant3)); in TEST_F() 278 auto constant2 = builder.AddInstruction( in TEST_F() local [all …]
|
D | hlo_dce_test.cc | 57 auto constant2 = builder.AddInstruction( in TEST_F() local 60 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 167 auto constant2 = builder.AddInstruction( in TEST_F() local 174 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 183 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 187 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
|
D | hlo_subcomputation_unification_test.cc | 105 auto constant2 = 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()
|
D | copy_insertion_test.cc | 171 HloInstruction* constant2 = builder.AddInstruction( in TEST_F() local 182 builder.AddInstruction(HloInstruction::CreateTuple({constant2, x, add})); in TEST_F() 192 op::Tuple(op::Copy(constant2), op::Copy(x), op::Add(constant1, y))); in TEST_F() 201 HloInstruction* constant2 = builder.AddInstruction( in TEST_F() local 207 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F() 209 HloInstruction::CreateTuple({constant3, constant2})); in TEST_F() 217 EXPECT_THAT(constant2->users(), UnorderedElementsAre(tuple1, tuple2)); in TEST_F() 375 HloInstruction* constant2 = builder.AddInstruction( in TEST_F() local 379 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F() 381 HloInstruction::CreateTuple({constant2, constant1})); in TEST_F() [all …]
|
D | flatten_call_graph_test.cc | 239 auto constant2 = builder.AddInstruction( in TEST_F() local 242 kScalarShape, pred, constant1, sub_computation, constant2, in TEST_F()
|
D | hlo_instruction_test.cc | 649 auto constant2 = 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() 660 EXPECT_THAT(constant2->users(), ElementsAre(fusion)); in TEST_F()
|
D | layout_assignment_test.cc | 173 auto constant2 = builder.AddInstruction( in TEST_F() local 176 ashape, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
|
D | buffer_assignment_test.cc | 2445 auto constant2 = builder.AddInstruction( in TEST_F() local 2450 HloInstruction::CreateCall(r0f32, {constant2}, sub_computation)); in TEST_F() 2454 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, call1, constant2)); in TEST_F()
|
D | algebraic_simplifier_test.cc | 651 HloInstruction* constant2 = builder.AddInstruction( in TEST_F() local 657 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, add1, constant2)); 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/ |
D | transformation_record_synonymous_constants.cpp | 82 auto constant2 = ir_context->get_constant_mgr()->GetConstantFromInst(def_2); in AreEquivalentConstants() local 85 if (!constant1 || !constant2) { in AreEquivalentConstants() 97 return constant2->IsZero(); in AreEquivalentConstants() 100 if (constant2->AsNullConstant()) { in AreEquivalentConstants() 108 assert(constant2->AsScalarConstant() && "Both constants must be scalar"); in AreEquivalentConstants() 109 return scalar1->words() == constant2->AsScalarConstant()->words(); in AreEquivalentConstants() 113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | transformation_record_synonymous_constants.cpp | 82 auto constant2 = ir_context->get_constant_mgr()->GetConstantFromInst(def_2); in AreEquivalentConstants() local 85 if (!constant1 || !constant2) { in AreEquivalentConstants() 97 return constant2->IsZero(); in AreEquivalentConstants() 100 if (constant2->AsNullConstant()) { in AreEquivalentConstants() 108 assert(constant2->AsScalarConstant() && "Both constants must be scalar"); in AreEquivalentConstants() 109 return scalar1->words() == constant2->AsScalarConstant()->words(); in AreEquivalentConstants() 113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
|
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/examples/ |
D | FibonacciMaker.java | 45 Local<Integer> constant2 = code.newLocal(TypeId.INT); in main() local 53 code.loadConstant(constant2, 2); in main() 55 code.compare(Comparison.LT, baseCase, i, constant2); in main() 57 code.op(BinaryOp.SUBTRACT, b, i, constant2); in main()
|
/external/deqp-deps/amber/tests/cases/ |
D | compute_push_constant_and_ssbo.amber | 27 uvec3 constant2[3]; // 16, array stride: 16 40 data_set0_binding0[offset++] = constant2[i][j];
|
D | compute_push_constant_and_ssbo.vkscript | 26 uvec3 constant2[3]; // 16, array stride: 16 39 data_set0_binding0[offset++] = constant2[i][j];
|
/external/eigen/unsupported/test/ |
D | cxx11_tensor_const.cpp | 41 TensorMap<const Tensor<int, 3> > constant2(random.data(), 2, 3, 7); in test_assign_of_const_tensor() local 45 Tensor<int, 2> result2 = constant2.chip(0, 2); in test_assign_of_const_tensor()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/ |
D | signature_def.mlir | 44 // CHECK-NEXT: name: "std.constant2",
|