/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 | 127 auto constant2 = builder.AddInstruction( in TEST_F() local 130 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F() 140 EXPECT_EQ(1, points_to_analysis_->GetPointsToSet(constant2).size()); in TEST_F() 142 points_to_analysis_->GetPointsToSet(constant2).element({}), {constant2}); in TEST_F() 144 points_to_analysis_->GetPointsToSet(constant2).tuple_sources({}).empty()); in TEST_F() 153 {constant1, constant2, tuple}); in TEST_F() 159 points_to_analysis_->GetPointsToSet(tuple).element({1}), {constant2}); in TEST_F() 166 *GetBuffer(constant2, {}), {1})); in TEST_F() 168 *GetBuffer(constant2, {}), {0})); in TEST_F() 170 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() 426 auto constant2 = builder.AddInstruction( in TEST_F() local 429 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F() 439 EXPECT_THAT(analysis.GetUniqueBufferAt(constant2).ComputePositions(), in TEST_F() 440 UnorderedElementsAre(HloPosition{constant2, {}}, in TEST_F() 466 auto constant2 = builder.AddInstruction( in TEST_F() local 469 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F() 471 scalar_shape_, {call1, constant2}, called_computation)); in TEST_F() [all …]
|
D | hlo_dataflow_analysis_test.cc | 106 auto constant2 = builder.AddInstruction( in TEST_P() local 109 scalar_shape_, HloOpcode::kAdd, constant1, constant2)); in TEST_P() 119 EXPECT_TRUE(analysis.ValueIsDefinedAt(constant2)); in TEST_P() 126 EXPECT_THAT(analysis.GetValueDefinedAt(constant2).positions(), in TEST_P() 127 UnorderedElementsAre(HloPosition{constant2, {}})); in TEST_P() 134 EXPECT_THAT(analysis.GetValueDefinedAt(constant2).uses(), in TEST_P() 140 EXPECT_FALSE(analysis.GetValueDefinedAt(constant2).live_out_of_module()); in TEST_P() 205 auto constant2 = builder.AddInstruction( in TEST_P() local 208 HloInstruction::CreateTuple({constant1, constant2})); in TEST_P() 235 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 | 174 auto constant2 = builder.AddInstruction( in TEST_F() local 183 UnorderedElementsAre(constant1, constant2, constant3, constant4)); in TEST_F() 192 auto constant2 = builder.AddInstruction( in TEST_F() local 197 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F() 199 r0f32_, HloOpcode::kAdd, constant2, constant3)); in TEST_F() 206 EXPECT_THAT(post_order, UnorderedElementsAre(constant1, constant2, constant3, in TEST_F() 216 auto constant2 = builder.AddInstruction( in TEST_F() local 222 constant1, constant2)); in TEST_F() 224 constant2, constant3)); in TEST_F() 279 auto constant2 = builder.AddInstruction( in TEST_F() local [all …]
|
D | hlo_dce_test.cc | 55 auto constant2 = builder.AddInstruction( in TEST_F() local 58 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 129 auto constant2 = builder.AddInstruction( in TEST_F() local 136 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 145 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F() 149 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 | 647 auto constant2 = builder.AddInstruction( in TEST_F() local 650 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F() 656 EXPECT_THAT(fusion->operands(), ElementsAre(constant1, constant2)); in TEST_F() 658 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 | 2298 auto constant2 = builder.AddInstruction( in TEST_F() local 2303 HloInstruction::CreateCall(r0f32, {constant2}, sub_computation)); in TEST_F() 2307 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, call1, constant2)); in TEST_F()
|
D | algebraic_simplifier_test.cc | 430 HloInstruction* constant2 = builder.AddInstruction( in TEST_F() local 436 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, add1, constant2)); in TEST_F() 446 m::Add(m::Op().Is(constant1), m::Op().Is(constant2))))); in TEST_F()
|
/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/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()
|