Home
last modified time | relevance | path

Searched refs:isclose (Results 1 – 17 of 17) sorted by relevance

/external/fonttools/Lib/fontTools/misc/
Dpy23.py271 isclose = _math.isclose variable
278 def isclose(a, b, rel_tol=1e-09, abs_tol=0): function
429 if isclose(m % 1, .5) and int(m) % 2 == 0:
/external/fonttools/Tests/misc/
Dpy23_test.py12 round2, round3, isclose, redirect_stdout, redirect_stderr)
264 isclose = staticmethod(isclose) variable in IsCloseTests
268 self.isclose(a, b, *args, **kwargs),
273 self.isclose(a, b, *args, **kwargs),
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b2.rst65 Add math.isclose() and cmath.isclose() functions as per PEP 485. Contributed
/external/python/cpython3/Lib/test/
Dtest_cmath.py602 isclose = cmath.isclose variable in IsCloseTests
606 self.isclose(1j, 1j, rel_tol=1j)
609 self.isclose(1j, 1j, abs_tol=1j)
612 self.isclose(1j, 1j, rel_tol=1j, abs_tol=1j)
Dtest_math.py1426 isclose = math.isclose # subclasses should override this variable in IsCloseTests
1429 self.assertTrue(self.isclose(a, b, *args, **kwargs),
1433 self.assertFalse(self.isclose(a, b, *args, **kwargs),
/external/tensorflow/tensorflow/contrib/proto/python/kernel_tests/
Ddecode_proto_op_test_base.py63 np.isclose(vs[i], ev), 'expected %r, actual %r' % (ev, vs[i]))
/external/tensorflow/tensorflow/python/kernel_tests/
Dtopk_op_test.py87 if np.isclose(values[batch_index, index],
/external/python/cpython3/Doc/whatsnew/
D3.5.rst610 :pep:`485` adds the :func:`math.isclose` and :func:`cmath.isclose`
614 Relative tolerance is the maximum allowed difference between ``isclose``
620 >>> math.isclose(a, b, rel_tol=1e-5)
622 >>> math.isclose(a, b, rel_tol=1e-6)
631 >>> math.isclose(a, b, abs_tol=0.00003)
633 >>> math.isclose(a, b, abs_tol=0.00001)
888 A new function :func:`~cmath.isclose` provides a way to test for approximate
1451 A new function :func:`~math.isclose` provides a way to test for approximate
/external/grpc-grpc/tools/run_tests/
Drun_tests.py1301 def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): function
1781 if not isclose(args.sample_percent, 100.0):
/external/tensorflow/tensorflow/contrib/cudnn_rnn/python/kernel_tests/
Dcudnn_rnn_ops_test.py82 if is_training and not np.isclose(dropout, 0):
569 if is_training and not np.isclose(dropout, 0):
/external/python/cpython3/Doc/library/
Dcmath.rst212 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
Dmath.rst118 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Ddnn_test.py125 self.assertTrue(np.all(np.isclose(language_value, initial_value)))
126 self.assertFalse(np.all(np.isclose(wire_value, initial_value)))
/external/fonttools/
DNEWS.rst928 py35 math.isclose() (9d8dacb)
DPKG-INFO1345 py35 math.isclose() (9d8dacb)
/external/fonttools/Lib/fonttools.egg-info/
DPKG-INFO1345 py35 math.isclose() (9d8dacb)
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers_test.py1172 np.isclose(output_deconv, output_conv2d_transpose, 1e-5, 1e-5).all())