Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/
Dshard_sequential_sample.cc32 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/
DOctoBoundsTest.cpp14 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()
DSkGaussFilterTest.cpp16 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/
Dinstance_norm.cc31 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()
Dfused_batch_norm.cc32 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()
Dl2_normalize.cc30 void L2Normalize::set_epsilon(const float epsilon) { (void)AddAttr(kEpsilon, MakeValue(epsilon)); } in set_epsilon()
35 auto value_ptr = GetAttr(kEpsilon); in get_epsilon()
Dbatch_norm.cc37 …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()
Dlayer_norm.cc135 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()
Dop_utils.h72 constexpr auto kEpsilon = "epsilon"; variable
/third_party/skia/tests/
DGrPathUtilsTest.cpp101 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()
DSkGaussFilterTest.cpp16 static constexpr double kEpsilon = 0.000001; variable
44 REPORTER_ASSERT(r, std::abs(golden[i] - result[i]) < kEpsilon); in DEF_TEST()
DRoundRectTest.cpp1022 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/
Dbatch_norm_grad.cc30 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/
DLevelsEffect.cpp103 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/
DDepthStencilFormatsTest.cpp365 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/
DGrPathUtils.cpp564 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/
DLevelsEffect.cpp77 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/
Dconv_bn_fusion.cc182 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/
Dshard_utils.h85 const double kEpsilon = 1e-7; variable
/third_party/flutter/skia/third_party/externals/piex/src/
Dpiex.cc496 const float kEpsilon = 0.9f; in NefGetPreviewData() local
509 kEpsilon || in NefGetPreviewData()
512 kEpsilon) { in NefGetPreviewData()
/third_party/skia/third_party/externals/piex/src/
Dpiex.cc496 const float kEpsilon = 0.9f; in NefGetPreviewData() local
509 kEpsilon || in NefGetPreviewData()
512 kEpsilon) { in NefGetPreviewData()
/third_party/skia/src/gpu/tessellate/
DStrokeHardwareTessellator.cpp685 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/
DTranslatorVulkan.cpp753 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/
Dshard_pybind.cc299 if (fabs(number - std::floor(number)) < mindspore::mindrecord::kEpsilon) { in FromJsonImpl()
/third_party/mindspore/mindspore/lite/tools/converter/import/
Dprimitive_adjust.cc456 if (dst_prim->GetAttr(ops::kEpsilon) == nullptr) { in MoveAttrMapLayerNorm()