Home
last modified time | relevance | path

Searched refs:constant2 (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_reachability_test.cc105 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 …]
Dtuple_points_to_analysis_test.cc127 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 …]
Dhlo_alias_analysis_test.cc122 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 …]
Dhlo_dataflow_analysis_test.cc106 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 …]
Dhlo_cse_test.cc57 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 …]
Dhlo_computation_test.cc174 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 …]
Dhlo_dce_test.cc55 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()
Dhlo_subcomputation_unification_test.cc105 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()
Dcopy_insertion_test.cc171 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 …]
Dflatten_call_graph_test.cc239 auto constant2 = builder.AddInstruction( in TEST_F() local
242 kScalarShape, pred, constant1, sub_computation, constant2, in TEST_F()
Dhlo_instruction_test.cc647 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()
Dlayout_assignment_test.cc173 auto constant2 = builder.AddInstruction( in TEST_F() local
176 ashape, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
Dbuffer_assignment_test.cc2298 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()
Dalgebraic_simplifier_test.cc430 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/
DFibonacciMaker.java45 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/
Dcxx11_tensor_const.cpp41 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()