Home
last modified time | relevance | path

Searched refs:floordiv (Results 1 – 25 of 36) 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.py191 if tf_func not in (_FLOORDIV, math_ops.floordiv, math_ops.zeta,
208 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.py370 math_ops.floordiv,
Dragged_dispatch_test.py106 math_ops.floordiv,
/external/tensorflow/tensorflow/compiler/xla/python/
Dbfloat16.cc889 float floordiv; in divmod() local
891 floordiv = std::floor(div); in divmod()
892 if (div - floordiv > 0.5f) { in divmod()
893 floordiv += 1.0f; in divmod()
896 floordiv = std::copysign(0.0f, a / b); in divmod()
898 return {floordiv, mod}; in divmod()
925 float floordiv, mod; in Call() local
926 std::tie(floordiv, mod) = in Call()
928 *reinterpret_cast<bfloat16*>(o0) = bfloat16(floordiv); in Call()
/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)
/external/python/cpython3/Objects/
Dfloatobject.c630 double div, mod, floordiv; in float_divmod() local
661 floordiv = floor(div); in float_divmod()
662 if (div - floordiv > 0.5) in float_divmod()
663 floordiv += 1.0; in float_divmod()
667 floordiv = copysign(0.0, vx / wx); /* zero w/ sign of vx/wx */ in float_divmod()
669 PyFPE_END_PROTECT(floordiv) in float_divmod()
670 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod()
/external/python/cpython3/Lib/
Doperator.py83 def floordiv(a, b): function
426 __floordiv__ = floordiv
Dfractions.py442 __floordiv__, __rfloordiv__ = _operator_fallbacks(_floordiv, operator.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/tensorflow/tensorflow/lite/testing/op_tests/
Dbinary_op.py203 make_binary_op_tests(options, tf.math.floordiv)
/external/libchrome/third_party/jinja2/
Dsandbox.py255 '//': operator.floordiv,
Dnodes.py30 '//': operator.floordiv,
/external/python/cpython3/Doc/library/
Doperator.rst104 .. function:: floordiv(a, b)
380 | Division | ``a // b`` | ``floordiv(a, b)`` |
/external/protobuf/python/google/protobuf/internal/
Dtest_util.py760 return NonStandardInteger(operator.floordiv(self.val, y))
802 return NonStandardInteger(operator.floordiv(y, self.val))
/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.py299 return floordiv(self.x, y, self.name)
1196 def floordiv(x, y, name=None): function
1267 _OverrideBinaryOperatorHelper(floordiv, "floordiv")
/external/python/cpython2/Modules/
Doperator.c392 spam2(floordiv,__floordiv__, "floordiv(a, b) -- Same as a // b.")
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.math.pbtxt164 name: "floordiv"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.math.pbtxt164 name: "floordiv"

12