Home
last modified time | relevance | path

Searched refs:constant1 (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_record_synonymous_constants.cpp81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local
85 if (!constant1 || !constant2) { in AreEquivalentConstants()
96 if (constant1->AsNullConstant()) { in AreEquivalentConstants()
101 return constant1->IsZero(); in AreEquivalentConstants()
105 if (auto scalar1 = constant1->AsScalarConstant()) { in AreEquivalentConstants()
113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
/third_party/spirv-tools/source/fuzz/
Dtransformation_record_synonymous_constants.cpp81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local
85 if (!constant1 || !constant2) { in AreEquivalentConstants()
96 if (constant1->AsNullConstant()) { in AreEquivalentConstants()
101 return constant1->IsZero(); in AreEquivalentConstants()
105 if (auto scalar1 = constant1->AsScalarConstant()) { in AreEquivalentConstants()
113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_record_synonymous_constants.cpp81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local
85 if (!constant1 || !constant2) { in AreEquivalentConstants()
96 if (constant1->AsNullConstant()) { in AreEquivalentConstants()
101 return constant1->IsZero(); in AreEquivalentConstants()
105 if (auto scalar1 = constant1->AsScalarConstant()) { in AreEquivalentConstants()
113 assert(constant1->AsCompositeConstant() && constant2->AsCompositeConstant() && in AreEquivalentConstants()
/third_party/boost/libs/math/test/
Dtest_vector_barycentric_rational.cpp219 Real constant1 = dis(gen); in test_constant_eigen() local
221 y[0][1] = constant1; in test_constant_eigen()
226 y[i][1] = constant1; in test_constant_eigen()
240 BOOST_CHECK_CLOSE(z[1], constant1, 100*sqrt(numeric_limits<Real>::epsilon())); in test_constant_eigen()
262 Real constant1 = dis(gen); in test_constant_std_array() local
264 y[0][1] = constant1; in test_constant_std_array()
269 y[i][1] = constant1; in test_constant_std_array()
283 BOOST_CHECK_CLOSE(z[1], constant1, 100*sqrt(numeric_limits<Real>::epsilon())); in test_constant_std_array()
304 Real constant1 = dis(gen); in test_constant_high_order() local
306 y[0][1] = constant1; in test_constant_high_order()
[all …]
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dfused_batch_norm_fusion_test.py35 constant1 = Tensor(0.1, mstype.float32) variable
58 mul1 = Mul(sub1, constant1)
75 mul1 = Mul(sub1, constant1)
92 mul1 = Mul(Cast(sub1, mstype.float32), constant1)