/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/ |
D | shard_sequential_sample.cc | 32 if (no_of_samples_ == 0 && (per_ >= -kEpsilon && per_ <= kEpsilon)) { in GetNumSamples() 35 if (per_ > kEpsilon && per_ <= 1.0f) { in GetNumSamples() 36 return dataset_size * kEpsilon; in GetNumSamples() 44 if (no_of_samples_ == 0 && (per_ >= -kEpsilon && per_ <= kEpsilon)) { in Execute() 46 } else if (per_ > kEpsilon && per_ <= 1.0f) { in Execute() 47 taking = total_no * kEpsilon; in Execute()
|
/third_party/flutter/skia/tests/ |
D | OctoBoundsTest.cpp | 14 constexpr static float kEpsilon = 1e-3f; variable 24 REPORTER_ASSERT(reporter, octoBounds.left() >= (float)clipRect.left() - kEpsilon); in validate_octo_bounds() 25 REPORTER_ASSERT(reporter, octoBounds.top() >= (float)clipRect.top() - kEpsilon); in validate_octo_bounds() 26 REPORTER_ASSERT(reporter, octoBounds.right() <= (float)clipRect.right() + kEpsilon); in validate_octo_bounds() 27 REPORTER_ASSERT(reporter, octoBounds.bottom() <= (float)clipRect.bottom() + kEpsilon); in validate_octo_bounds() 168 GrOctoBounds::Get_x45(ir,it) <= l45 + kEpsilon || in test_octagon() 169 GrOctoBounds::Get_y45(ir,ib) <= t45 + kEpsilon || in test_octagon() 170 GrOctoBounds::Get_x45(il,ib) >= r45 - kEpsilon || in test_octagon() 171 GrOctoBounds::Get_y45(il,it) >= b45 - kEpsilon); in test_octagon()
|
D | SkGaussFilterTest.cpp | 16 static constexpr double kEpsilon = 0.000001; variable 44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
|
/third_party/mindspore/mindspore/core/ops/ |
D | instance_norm.cc | 31 void InstanceNorm::set_epsilon(const float epsilon) { (void)this->AddAttr(kEpsilon, MakeValue(epsil… in set_epsilon() 33 auto value_ptr = GetAttr(kEpsilon); in get_epsilon()
|
D | fused_batch_norm.cc | 32 void FusedBatchNorm::set_epsilon(const float epsilon) { (void)this->AddAttr(kEpsilon, MakeValue(eps… in set_epsilon() 42 auto value_ptr = this->GetAttr(kEpsilon); in get_epsilon()
|
D | l2_normalize.cc | 30 void L2Normalize::set_epsilon(const float epsilon) { (void)AddAttr(kEpsilon, MakeValue(epsilon)); } in set_epsilon() 35 auto value_ptr = GetAttr(kEpsilon); in get_epsilon()
|
D | batch_norm.cc | 37 …CheckAndConvertUtils::CheckInRange<float>(kEpsilon, epsilon, kIncludeBoth, {0.0, 1.0}, this->name(… in set_epsilon() 38 (void)this->AddAttr(kEpsilon, MakeValue(epsilon)); in set_epsilon() 62 auto value_ptr = GetAttr(kEpsilon); in get_epsilon()
|
D | layer_norm.cc | 135 void LayerNorm::set_epsilon(const float epsilon) { (void)this->AddAttr(kEpsilon, MakeValue(epsilon)… in set_epsilon() 146 auto value_ptr = this->GetAttr(kEpsilon); in get_epsilon()
|
D | op_utils.h | 72 constexpr auto kEpsilon = "epsilon"; variable
|
/third_party/skia/tests/ |
D | GrPathUtilsTest.cpp | 101 constexpr static double kEpsilon = 1.0 / (1 << 11); in DEF_TEST() local 102 constexpr static double kEpsilonSquared = kEpsilon * kEpsilon; in DEF_TEST() 108 REPORTER_ASSERT(r, SkScalarNearlyEqual(T[1] - T[0], (float)kEpsilon, (float)kEpsilonSquared)); in DEF_TEST()
|
D | SkGaussFilterTest.cpp | 16 static constexpr double kEpsilon = 0.000001; variable 44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
|
D | RoundRectTest.cpp | 1022 static constexpr SkScalar kEpsilon = 0.005f; in test_inner_bounds() local 1034 2.f * radius * radius, kEpsilon)); in test_inner_bounds() 1048 expectedArea, kEpsilon)); in test_inner_bounds() 1090 inner.inset(kEpsilon, kEpsilon); in test_inner_bounds()
|
/third_party/mindspore/mindspore/core/ops/grad/ |
D | batch_norm_grad.cc | 30 void BatchNormGrad::set_epsilon(const float epsilon) { (void)this->AddAttr(kEpsilon, MakeValue(epsi… in set_epsilon() 33 auto value_ptr = this->GetAttr(kEpsilon); in get_epsilon()
|
/third_party/flutter/skia/modules/skottie/src/effects/ |
D | LevelsEffect.cpp | 103 static constexpr auto kEpsilon = 2 * SK_ScalarNearlyZero; in apply() local 104 dIn += std::copysign(kEpsilon, dIn); in apply() 105 in_0 += std::copysign(kEpsilon, .5f - in_0); in apply()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | DepthStencilFormatsTest.cpp | 365 constexpr float kEpsilon = 0.002f; in depthStencilReadbackCase() local 367 ASSERT_NEAR(pixels[0], d00, kEpsilon); in depthStencilReadbackCase() 368 ASSERT_NEAR(pixels[0 + destRes], d01, kEpsilon); in depthStencilReadbackCase() 369 ASSERT_NEAR(pixels[1], d10, kEpsilon); in depthStencilReadbackCase() 370 ASSERT_NEAR(pixels[1 + destRes], d11, kEpsilon); in depthStencilReadbackCase() 379 constexpr unsigned short kEpsilon = 2; in depthStencilReadbackCase() local 381 ASSERT_NEAR(pixels[0], scale(d00), kEpsilon); in depthStencilReadbackCase() 382 ASSERT_NEAR(pixels[0 + destRes], scale(d01), kEpsilon); in depthStencilReadbackCase() 383 ASSERT_NEAR(pixels[1], scale(d10), kEpsilon); in depthStencilReadbackCase() 384 ASSERT_NEAR(pixels[1 + destRes], scale(d11), kEpsilon); in depthStencilReadbackCase()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 564 constexpr static float kEpsilon = 1.f / (1 << 11); in findCubicConvex180Chops() local 569 SkASSERT(sk_bit_cast<float>(kIEEE_one_minus_2_epsilon) == 1 - 2*kEpsilon); in findCubicConvex180Chops() 607 float cuspThreshold = a * (kEpsilon/2); in findCubicConvex180Chops() 626 if (sk_bit_cast<uint32_t>(root - kEpsilon) < kIEEE_one_minus_2_epsilon) { in findCubicConvex180Chops() 640 if (sk_bit_cast<uint32_t>(root - kEpsilon) < kIEEE_one_minus_2_epsilon) { in findCubicConvex180Chops() 671 auto inside = (roots > kEpsilon) & (roots < (1 - kEpsilon)); in findCubicConvex180Chops()
|
/third_party/skia/modules/skottie/src/effects/ |
D | LevelsEffect.cpp | 77 static constexpr auto kEpsilon = 2 * SK_ScalarNearlyZero; in build_lut() local 78 dIn += std::copysign(kEpsilon, dIn); in build_lut() 79 in_0 += std::copysign(kEpsilon, .5f - in_0); in build_lut()
|
/third_party/mindspore/mindspore/lite/tools/optimizer/fusion/ |
D | conv_bn_fusion.cc | 182 if (primitive_c->GetAttr(ops::kEpsilon) != nullptr) { in InitTransParam() 183 eps = GetValue<float>(primitive_c->GetAttr(ops::kEpsilon)); in InitTransParam()
|
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/include/common/ |
D | shard_utils.h | 85 const double kEpsilon = 1e-7; variable
|
/third_party/flutter/skia/third_party/externals/piex/src/ |
D | piex.cc | 496 const float kEpsilon = 0.9f; in NefGetPreviewData() local 509 kEpsilon || in NefGetPreviewData() 512 kEpsilon) { in NefGetPreviewData()
|
/third_party/skia/third_party/externals/piex/src/ |
D | piex.cc | 496 const float kEpsilon = 0.9f; in NefGetPreviewData() local 509 kEpsilon || in NefGetPreviewData() 512 kEpsilon) { in NefGetPreviewData()
|
/third_party/skia/src/gpu/tessellate/ |
D | StrokeHardwareTessellator.cpp | 685 constexpr static float kEpsilon = 1.f / (1 << 11); in cubic_has_cusp() local 686 float cuspThreshold = (2*kEpsilon) * a; in cubic_has_cusp()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
D | TranslatorVulkan.cpp | 753 static constexpr float kEpsilon = 0.0001f; in AddBresenhamEmulationFS() local 754 static constexpr float kThreshold = 0.5 + kEpsilon; in AddBresenhamEmulationFS()
|
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/common/ |
D | shard_pybind.cc | 299 if (fabs(number - std::floor(number)) < mindspore::mindrecord::kEpsilon) { in FromJsonImpl()
|
/third_party/mindspore/mindspore/lite/tools/converter/import/ |
D | primitive_adjust.cc | 456 if (dst_prim->GetAttr(ops::kEpsilon) == nullptr) { in MoveAttrMapLayerNorm()
|