Home
last modified time | relevance | path

Searched refs:constant1 (Results 1 – 18 of 18) 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 …]
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()
424 auto constant1 = builder.AddInstruction( in TEST_F() local
429 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F()
436 EXPECT_THAT(analysis.GetUniqueBufferAt(constant1).ComputePositions(), in TEST_F()
437 UnorderedElementsAre(HloPosition{constant1, {}}, in TEST_F()
464 auto constant1 = builder.AddInstruction( in TEST_F() local
469 scalar_shape_, {constant1, constant2}, called_computation)); in TEST_F()
477 EXPECT_THAT(analysis.GetUniqueBufferAt(constant1).ComputePositions(), in TEST_F()
[all …]
Dtuple_points_to_analysis_test.cc125 auto constant1 = builder.AddInstruction( in TEST_F() local
130 HloInstruction::CreateTuple({constant1, constant2})); in TEST_F()
133 EXPECT_EQ(1, points_to_analysis_->GetPointsToSet(constant1).size()); in TEST_F()
135 points_to_analysis_->GetPointsToSet(constant1).element({}), {constant1}); in TEST_F()
137 points_to_analysis_->GetPointsToSet(constant1).tuple_sources({}).empty()); in TEST_F()
153 {constant1, constant2, tuple}); in TEST_F()
157 points_to_analysis_->GetPointsToSet(tuple).element({0}), {constant1}); in TEST_F()
164 *GetBuffer(constant1, {}), {0})); in TEST_F()
169 EXPECT_TRUE(tuple_points_to_set.ContainsBuffer(*GetBuffer(constant1, {}))); in TEST_F()
178 auto constant1 = builder.AddInstruction( in TEST_F() local
[all …]
Dhlo_dataflow_analysis_test.cc104 auto constant1 = builder.AddInstruction( in TEST_P() local
109 scalar_shape_, HloOpcode::kAdd, constant1, constant2)); in TEST_P()
118 EXPECT_TRUE(analysis.ValueIsDefinedAt(constant1)); in TEST_P()
124 EXPECT_THAT(analysis.GetValueDefinedAt(constant1).positions(), in TEST_P()
125 UnorderedElementsAre(HloPosition{constant1, {}})); in TEST_P()
132 EXPECT_THAT(analysis.GetValueDefinedAt(constant1).uses(), in TEST_P()
139 EXPECT_FALSE(analysis.GetValueDefinedAt(constant1).live_out_of_module()); in TEST_P()
203 auto constant1 = builder.AddInstruction( in TEST_P() local
208 HloInstruction::CreateTuple({constant1, constant2})); in TEST_P()
210 HloInstruction::CreateTuple({tuple, tuple, constant1})); in TEST_P()
[all …]
Dhlo_dce_test.cc53 auto constant1 = builder.AddInstruction( in TEST_F() local
58 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
127 auto constant1 = builder.AddInstruction( in TEST_F() local
134 constant1->shape(), HloOpcode::kNegate, constant1)); in TEST_F()
136 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
142 constant1->shape(), HloOpcode::kNegate, constant1)); in TEST_F()
145 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
149 constant1->shape(), HloOpcode::kAdd, constant1, constant2)); in TEST_F()
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.cc172 auto constant1 = builder.AddInstruction( in TEST_F() local
183 UnorderedElementsAre(constant1, constant2, constant3, constant4)); in TEST_F()
190 auto constant1 = builder.AddInstruction( in TEST_F() local
197 r0f32_, HloOpcode::kAdd, constant1, constant2)); in TEST_F()
201 r0f32_, HloOpcode::kAdd, constant1, constant3)); in TEST_F()
206 EXPECT_THAT(post_order, UnorderedElementsAre(constant1, constant2, constant3, in TEST_F()
214 auto constant1 = builder.AddInstruction( in TEST_F() local
222 constant1, constant2)); in TEST_F()
226 constant1, constant3)); in TEST_F()
277 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()
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()
1325 auto constant1 = builder.AddInstruction( in TEST_F() local
[all …]
Dflatten_call_graph_test.cc237 auto constant1 = builder.AddInstruction( in TEST_F() local
242 kScalarShape, pred, constant1, sub_computation, constant2, in TEST_F()
Dhlo_instruction_test.cc645 auto constant1 = 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()
657 EXPECT_THAT(constant1->users(), ElementsAre(fusion)); in TEST_F()
Dbuffer_assignment_test.cc2291 auto constant1 = builder.AddInstruction( in TEST_F() local
2294 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, param, constant1)); in TEST_F()
Dalgebraic_simplifier_test.cc428 HloInstruction* constant1 = builder.AddInstruction( in TEST_F() local
434 HloInstruction::CreateBinary(r0f32, HloOpcode::kAdd, param0, constant1)); 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.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/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/owasp/sanitizer/tools/findbugs/lib/
Dfindbugs.jarMETA-INF/ META-INF/MANIFEST.MF default.xsl edu/ edu/umd ...