Home
last modified time | relevance | path

Searched refs:CreateConstant (Results 1 – 25 of 154) sorted by relevance

1234567

/external/tensorflow/tensorflow/compiler/xla/tests/
Dcpu_gpu_fusion_test.cc95 hlos[i + 1] = builder.AddInstruction(HloInstruction::CreateConstant( in TestElementwise2D()
200 auto const0 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
202 auto const1 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
208 auto const4 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
212 auto const6 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
218 auto const9 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
221 HloInstruction::CreateConstant(LiteralUtil::CreateR2<bool>( in XLA_TEST_F()
248 auto const0 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
252 auto const2 = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
285 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in XLA_TEST_F()
[all …]
Dbroadcast_test.cc39 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0))); in XLA_TEST_F()
55 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0))); in XLA_TEST_F()
71 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
98 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
117 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
134 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in XLA_TEST_F()
153 HloInstruction::CreateConstant(LiteralUtil::CreateR1<float>({1.0, 2.0}))); in TEST_F()
178 HloInstruction::CreateConstant(LiteralUtil::CreateR1<float>(input_data))); in TEST_F()
209 HloInstruction::CreateConstant(LiteralUtil::CreateR1<float>(r1_array))); in XLA_TEST_F()
227 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0f))); in TEST_F()
[all …]
Dcustom_call_test.cc111 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in XLA_TEST_F()
132 HloInstruction::CreateConstant(LiteralUtil::CreateR2FromArray2D(array))); in XLA_TEST_F()
147 HloInstruction::CreateConstant(LiteralUtil::CreateR2FromArray2D( in XLA_TEST_F()
240 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in XLA_TEST_F()
256 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in XLA_TEST_F()
273 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0f))); in XLA_TEST_F()
275 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0f))); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/
Dcall_inliner_test.cc49 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(24.0f))); in TEST_F()
51 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
88 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
102 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
126 HloInstruction::CreateConstant(LiteralUtil::CreateR1<bool>({true}))); in TEST_F()
128 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
152 HloInstruction::CreateConstant(LiteralUtil::CreateR0<int32_t>(0))); in TEST_F()
159 HloInstruction::CreateConstant(LiteralUtil::CreateR0<int32_t>(0))); in TEST_F()
165 HloInstruction::CreateConstant(LiteralUtil::CreateR0<int32_t>(0))); in TEST_F()
190 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0))); in TEST_F()
Dhlo_cse_test.cc57 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
59 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
85 HloInstruction::CreateConstant(LiteralUtil::CreateR2WithLayout<float>( in TEST_F()
88 HloInstruction::CreateConstant(LiteralUtil::CreateR2WithLayout<float>( in TEST_F()
116 HloInstruction::CreateConstant(LiteralUtil::CreateR0<uint32_t>(42)))); in TEST_F()
118 HloInstruction::CreateConstant(LiteralUtil::CreateR0<int32_t>(42)))); in TEST_F()
120 HloInstruction::CreateConstant(LiteralUtil::CreateR0<uint64_t>(42.0)))); in TEST_F()
122 HloInstruction::CreateConstant(LiteralUtil::CreateR0<int64_t>(42.0)))); in TEST_F()
124 HloInstruction::CreateConstant(LiteralUtil::CreateR0<double>(42.0)))); in TEST_F()
126 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f)))); in TEST_F()
[all …]
Dhlo_computation_test.cc127 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
138 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
154 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
156 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
158 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
160 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
172 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
174 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
176 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
196 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
[all …]
Dhlo_evaluator_test.cc84 b.AddInstruction(HloInstruction::CreateConstant(std::move(input))); in TestUnaryOp()
102 auto c1 = b.AddInstruction(HloInstruction::CreateConstant(std::move(lhs))); in TestBinaryOp()
103 auto c2 = b.AddInstruction(HloInstruction::CreateConstant(std::move(rhs))); in TestBinaryOp()
117 b.AddInstruction(HloInstruction::CreateConstant(std::move(src0))); in TestTernaryOp()
119 b.AddInstruction(HloInstruction::CreateConstant(std::move(src1))); in TestTernaryOp()
121 b.AddInstruction(HloInstruction::CreateConstant(std::move(src2))); in TestTernaryOp()
187 HloInstruction::CreateConstant(std::move(arg_literal))); in ReduceWindowMaxIotaTest()
189 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.f))); in ReduceWindowMaxIotaTest()
254 auto c1 = b.AddInstruction(HloInstruction::CreateConstant(std::move(low))); in TEST_P()
255 auto c2 = b.AddInstruction(HloInstruction::CreateConstant(std::move(value))); in TEST_P()
[all …]
Dmap_inliner_test.cc53 auto lhs = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
55 auto rhs = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
85 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0f))); in TEST_F()
89 auto lhs = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
125 auto lhs = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
127 auto rhs = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
158 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1))); in TEST_F()
160 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(4))); in TEST_F()
Dhlo_alias_analysis_test.cc154 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_F()
156 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_F()
384 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
449 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_F()
451 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_F()
489 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_F()
491 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_F()
569 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
575 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_F()
577 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_F()
[all …]
Dhlo_dataflow_analysis_test.cc115 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_P()
117 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_P()
214 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_P()
216 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_P()
276 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_P()
278 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_P()
350 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_P()
352 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))); in TEST_P()
418 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_P()
424 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0))); in TEST_P()
[all …]
Dhlo_dce_test.cc54 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
56 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(123.0f))); in TEST_F()
75 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
164 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
166 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(123.0f))); in TEST_F()
261 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0f))); in TEST_F()
383 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0))), in TEST_F()
388 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0))); in TEST_F()
424 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0))), in TEST_F()
434 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0))), in TEST_F()
[all …]
Dhlo_reachability_test.cc43 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in TEST_F()
45 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in TEST_F()
47 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in TEST_F()
49 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in TEST_F()
51 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in TEST_F()
105 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(1.0f))); in TEST_F()
107 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0f))); in TEST_F()
Dcollective_decomposer_utils.cc40 HloInstruction::CreateConstant(LiteralUtil::Zero(U32))); in CreateStartIndicesForCollectiveDecomposition()
54 computation->AddInstruction(HloInstruction::CreateConstant( in CreateStartIndicesForCollectiveDecomposition()
137 computation->AddInstruction(HloInstruction::CreateConstant( in CreateStartIndicesForCollectiveDecomposition()
160 HloInstruction::CreateConstant(LiteralUtil::CreateR0<uint32_t>( in CreateStartIndicesForCollectiveDecomposition()
Dflatten_call_graph_test.cc83 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0.0f))); in MakeConditionComputation()
161 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
172 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(false))); in TEST_F()
236 HloInstruction::CreateConstant(LiteralUtil::CreateR0<bool>(true))); in TEST_F()
238 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(56.0f))); in TEST_F()
240 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(12.0f))); in TEST_F()
/external/deqp-deps/SPIRV-Tools/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp751 analysis.GetScalarEvolution()->CreateConstant(-10)); in TEST()
754 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
755 analysis.GetScalarEvolution()->CreateConstant(-1)); in TEST()
777 analysis.GetScalarEvolution()->CreateConstant(-5)); in TEST()
780 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
781 analysis.GetScalarEvolution()->CreateConstant(4)); in TEST()
803 analysis.GetScalarEvolution()->CreateConstant(0)); in TEST()
806 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
807 analysis.GetScalarEvolution()->CreateConstant(9)); in TEST()
829 analysis.GetScalarEvolution()->CreateConstant(5)); in TEST()
[all …]
Ddependence_analysis.cpp3637 auto x = scalar_evolution->CreateConstant(1); in TEST()
3638 auto y = scalar_evolution->CreateConstant(10); in TEST()
3658 auto x = scalar_evolution->CreateConstant(1); in TEST()
3659 auto y = scalar_evolution->CreateConstant(10); in TEST()
3680 auto x = scalar_evolution->CreateConstant(1); in TEST()
3681 auto y = scalar_evolution->CreateConstant(10); in TEST()
3703 auto a0 = scalar_evolution->CreateConstant(3); in TEST()
3704 auto b0 = scalar_evolution->CreateConstant(6); in TEST()
3705 auto c0 = scalar_evolution->CreateConstant(9); in TEST()
3707 auto a1 = scalar_evolution->CreateConstant(6); in TEST()
[all …]
/external/angle/third_party/spirv-tools/src/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp751 analysis.GetScalarEvolution()->CreateConstant(-10)); in TEST()
754 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
755 analysis.GetScalarEvolution()->CreateConstant(-1)); in TEST()
777 analysis.GetScalarEvolution()->CreateConstant(-5)); in TEST()
780 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
781 analysis.GetScalarEvolution()->CreateConstant(4)); in TEST()
803 analysis.GetScalarEvolution()->CreateConstant(0)); in TEST()
806 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
807 analysis.GetScalarEvolution()->CreateConstant(9)); in TEST()
829 analysis.GetScalarEvolution()->CreateConstant(5)); in TEST()
[all …]
Ddependence_analysis.cpp3637 auto x = scalar_evolution->CreateConstant(1); in TEST()
3638 auto y = scalar_evolution->CreateConstant(10); in TEST()
3658 auto x = scalar_evolution->CreateConstant(1); in TEST()
3659 auto y = scalar_evolution->CreateConstant(10); in TEST()
3680 auto x = scalar_evolution->CreateConstant(1); in TEST()
3681 auto y = scalar_evolution->CreateConstant(10); in TEST()
3703 auto a0 = scalar_evolution->CreateConstant(3); in TEST()
3704 auto b0 = scalar_evolution->CreateConstant(6); in TEST()
3705 auto c0 = scalar_evolution->CreateConstant(9); in TEST()
3707 auto a1 = scalar_evolution->CreateConstant(6); in TEST()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp751 analysis.GetScalarEvolution()->CreateConstant(-10)); in TEST()
754 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
755 analysis.GetScalarEvolution()->CreateConstant(-1)); in TEST()
777 analysis.GetScalarEvolution()->CreateConstant(-5)); in TEST()
780 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
781 analysis.GetScalarEvolution()->CreateConstant(4)); in TEST()
803 analysis.GetScalarEvolution()->CreateConstant(0)); in TEST()
806 loop, analysis.GetScalarEvolution()->CreateConstant(1)), in TEST()
807 analysis.GetScalarEvolution()->CreateConstant(9)); in TEST()
829 analysis.GetScalarEvolution()->CreateConstant(5)); in TEST()
[all …]
Ddependence_analysis.cpp3637 auto x = scalar_evolution->CreateConstant(1); in TEST()
3638 auto y = scalar_evolution->CreateConstant(10); in TEST()
3658 auto x = scalar_evolution->CreateConstant(1); in TEST()
3659 auto y = scalar_evolution->CreateConstant(10); in TEST()
3680 auto x = scalar_evolution->CreateConstant(1); in TEST()
3681 auto y = scalar_evolution->CreateConstant(10); in TEST()
3703 auto a0 = scalar_evolution->CreateConstant(3); in TEST()
3704 auto b0 = scalar_evolution->CreateConstant(6); in TEST()
3705 auto c0 = scalar_evolution->CreateConstant(9); in TEST()
3707 auto a1 = scalar_evolution->CreateConstant(6); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/tests/
Dcpu_fusion_test.cc57 HloInstruction::CreateConstant(std::move(input_literal1))); in TEST_F()
59 HloInstruction::CreateConstant(std::move(input_literal2))); in TEST_F()
96 HloInstruction::CreateConstant(std::move(input_literal))); in TEST_F()
108 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))), in TEST_F()
146 HloInstruction::CreateConstant(std::move(input_literal))); in TEST_F()
174 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(0))), in TEST_F()
184 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(2.0))), in TEST_F()
243 HloInstruction::CreateConstant(std::move(input_literal))); in TEST_F()
300 HloInstruction::CreateConstant(LiteralUtil::CreateR0<float>(42.0))); in TEST_F()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dscalar_analysis.h62 SENode* CreateConstant(int64_t integer);
229 return *this + scev_->CreateConstant(integer);
247 return *this - scev_->CreateConstant(integer);
261 return *this * scev_->CreateConstant(integer);
271 return *this / scev_->CreateConstant(integer);
285 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} -
304 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} /
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dscalar_analysis.h62 SENode* CreateConstant(int64_t integer);
229 return *this + scev_->CreateConstant(integer);
247 return *this - scev_->CreateConstant(integer);
261 return *this * scev_->CreateConstant(integer);
271 return *this / scev_->CreateConstant(integer);
285 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} -
304 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} /
/external/angle/third_party/spirv-tools/src/source/opt/
Dscalar_analysis.h62 SENode* CreateConstant(int64_t integer);
229 return *this + scev_->CreateConstant(integer);
247 return *this - scev_->CreateConstant(integer);
261 return *this * scev_->CreateConstant(integer);
271 return *this / scev_->CreateConstant(integer);
285 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} -
304 return SExpression{rhs.GetScalarEvolutionAnalysis()->CreateConstant(lhs)} /
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dconv_canonicalization_test.cc62 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
66 auto kernel = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
125 auto input = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()
129 auto kernel = builder.AddInstruction(HloInstruction::CreateConstant( in TEST_F()

1234567