Home
last modified time | relevance | path

Searched refs:tol2 (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/test/utils/
Dcommon.cpp132 float tol2 = 0; in allclose() local
159 tol2 = tol2 + fabs(a[i] - b[i]) / fabs(b[i]); in allclose()
173 printf("\n fabs(a[i] - b[i])/fabs(b[i]) : %f\n", tol2 / fail_count); in allclose()
221 float tol2 = 0; in allclose_int8() local
251 tol2 = tol2 + fabs(a[i] - b[i]) / fabs(b[i]); in allclose_int8()
263 printf("\n fabs(a[i] - b[i])/fabs(b[i]) : %f\n", tol2 / fail_count); in allclose_int8()
/third_party/skia/src/core/
DSkGeometry.cpp1418 SkScalar tol2 = tol * tol; in computeQuadPOW2() local
1419 if (tol2 == 0) { in computeQuadPOW2()
1422 SkScalar fpow2 = SkScalarLog2((x * x + y * y) / tol2) * 0.25f; in computeQuadPOW2()