Searched refs:constant1 (Results 1 – 5 of 5) sorted by relevance
81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() local85 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()
219 Real constant1 = dis(gen); in test_constant_eigen() local221 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() local264 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() local306 y[0][1] = constant1; in test_constant_high_order()[all …]
35 constant1 = Tensor(0.1, mstype.float32) variable58 mul1 = Mul(sub1, constant1)75 mul1 = Mul(sub1, constant1)92 mul1 = Mul(Cast(sub1, mstype.float32), constant1)