Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/python/kernel_tests/
Ddivision_future_test.py64 floordiv = x // y
66 check(floordiv, tf_floordiv)
Ddivision_past_test.py63 floordiv = x // y
65 check(floordiv, tf_floordiv)
Dcwise_ops_binary_test.py190 if tf_func not in (_FLOORDIV, math_ops.floordiv, math_ops.zeta,
207 self._compareBoth(x, y + 0.1, np.floor_divide, math_ops.floordiv)
275 self._compareBoth(x, y + 0.1, np.floor_divide, math_ops.floordiv)
322 self._compareBoth(x, y, np.floor_divide, math_ops.floordiv)
333 self._compareBoth(x, y, np.floor_divide, math_ops.floordiv)
351 self._compareBoth(x, y, np.floor_divide, math_ops.floordiv)
424 if tf_func not in (_FLOORDIV, math_ops.floordiv):
452 tf_func in (_FLOORDIV, math_ops.floordiv)):
482 (np.floor_divide, math_ops.floordiv),
Dbasic_gpu_test.py64 self._compareGPU(x, y + 0.1, np.floor_divide, math_ops.floordiv)
233 self._compareGpu(x, y + 0.1, np.floor_divide, math_ops.floordiv)
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_operators.py56 ragged_tensor.RaggedTensor.__floordiv__ = math_ops.floordiv
57 ragged_tensor.RaggedTensor.__rfloordiv__ = _right(math_ops.floordiv)
Dragged_dispatch.py369 math_ops.floordiv,
Dragged_dispatch_test.py103 math_ops.floordiv,
/external/python/cpython3/Objects/
Dfloatobject.c621 double div, mod, floordiv; in float_divmod() local
652 floordiv = floor(div); in float_divmod()
653 if (div - floordiv > 0.5) in float_divmod()
654 floordiv += 1.0; in float_divmod()
658 floordiv = copysign(0.0, vx / wx); /* zero w/ sign of vx/wx */ in float_divmod()
660 PyFPE_END_PROTECT(floordiv) in float_divmod()
661 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod()
/external/python/cpython3/Lib/test/
Dtest_abstract_numbers.py38 self.assertRaises(TypeError, operator.floordiv, c1, c2)
Dtest_operator.py158 self.assertRaises(TypeError, operator.floordiv, 5)
159 self.assertRaises(TypeError, operator.floordiv, None, None)
160 self.assertEqual(operator.floordiv(5, 2), 2)
Ddatetimetester.py22 from operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod
836 self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)
/external/python/cpython3/Lib/
Doperator.py83 def floordiv(a, b): function
430 __floordiv__ = floordiv
/external/python/cpython2/Objects/
Dfloatobject.c751 double div, mod, floordiv; in float_divmod() local
785 floordiv = floor(div); in float_divmod()
786 if (div - floordiv > 0.5) in float_divmod()
787 floordiv += 1.0; in float_divmod()
792 floordiv = div * vx / wx; /* zero w/ sign of vx/wx */ in float_divmod()
794 PyFPE_END_PROTECT(floordiv) in float_divmod()
795 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod()
/external/python/cpython2/Lib/test/
Dtest_operator.py153 self.assertTrue(operator.floordiv(5, 2) == 2)
156 self.assertRaises(TypeError, operator.floordiv, 5)
157 self.assertRaises(TypeError, operator.floordiv, None, None)
158 self.assertTrue(operator.floordiv(5, 2) == 2)
/external/libchrome/third_party/jinja2/
Dsandbox.py255 '//': operator.floordiv,
Dnodes.py30 '//': operator.floordiv,
/external/python/cpython3/Doc/library/
Doperator.rst104 .. function:: floordiv(a, b)
378 | Division | ``a // b`` | ``floordiv(a, b)`` |
/external/python/cpython2/Doc/library/
Doperator.rst112 .. function:: floordiv(a, b)
630 | Division | ``a // b`` | ``floordiv(a, b)`` |
/external/tensorflow/tensorflow/python/ops/
Dmath_ops.py277 return floordiv(self.x, y, self.name)
1117 def floordiv(x, y, name=None): function
1179 _OverrideBinaryOperatorHelper(floordiv, "floordiv")
Dmath_ops_test.py515 c_grad = gradients.gradients(math_ops.floordiv(a, b), [a, b])
/external/python/cpython2/Modules/
Doperator.c392 spam2(floordiv,__floordiv__, "floordiv(a, b) -- Same as a // b.")
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.math.pbtxt152 name: "floordiv"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.math.pbtxt152 name: "floordiv"
/external/python/cpython3/Doc/howto/
Dfunctional.rst1089 * Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, ``abs()``, ...
/external/python/cpython2/Doc/howto/
Dfunctional.rst1108 * Math operations: ``add()``, ``sub()``, ``mul()``, ``div()``, ``floordiv()``,

12