Home
last modified time | relevance | path

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

12

/third_party/mindspore/mindspore/ops/composite/multitype_ops/
Dfloordiv_impl.py23 floordiv = base.MultitypeFuncGraph("floordiv", True) variable
30 @floordiv.register("Number", "Number")
36 @floordiv.register("Tensor", "Tensor")
42 @floordiv.register("Tensor", "Number")
48 @floordiv.register("Number", "Tensor")
54 @floordiv.register("Tuple", "Tensor")
61 @floordiv.register("Tensor", "Tuple")
68 @floordiv.register("List", "Tensor")
75 @floordiv.register("Tensor", "List")
D__init__.py23 from .floordiv_impl import floordiv
D_compile_utils.py130 return F.floordiv(self, other)
/third_party/mindspore/tests/ut/python/parallel/
Dtest_auto_parallel_arithmetic.py65 self.floordiv = P.FloorDiv()
69 out = self.floordiv(out, b)
94 self.floordiv = P.FloorDiv()
98 out = self.floordiv(out, b)
123 self.floordiv = P.FloorDiv()
127 out = self.floordiv(out, b)
152 self.floordiv = P.FloorDiv()
156 out = self.floordiv(out, b)
Dtest_arithmetic.py548 self.floordiv = P.FloorDiv().shard(strategy2)
552 out = self.floordiv(out, b)
572 self.floordiv = P.FloorDiv().shard(strategy2)
576 out = self.floordiv(out, b)
596 self.floordiv = P.FloorDiv().shard(strategy2)
600 out = self.floordiv(out, b)
/third_party/python/Objects/
Dfloatobject.c636 _float_div_mod(double vx, double wx, double *floordiv, double *mod) in _float_div_mod() argument
662 *floordiv = floor(div); in _float_div_mod()
663 if (div - *floordiv > 0.5) { in _float_div_mod()
664 *floordiv += 1.0; in _float_div_mod()
669 *floordiv = copysign(0.0, vx / wx); /* zero w/ sign of vx/wx */ in _float_div_mod()
677 double mod, floordiv; in float_divmod() local
684 _float_div_mod(vx, wx, &floordiv, &mod); in float_divmod()
685 return Py_BuildValue("(dd)", floordiv, mod); in float_divmod()
692 double mod, floordiv; in float_floor_div() local
699 _float_div_mod(vx, wx, &floordiv, &mod); in float_floor_div()
[all …]
/third_party/mindspore/mindspore/_extends/parse/
Dresources.py87 T.floordiv: multitype_ops.floordiv,
Dtrope.py23 add, sub, mul, truediv, floordiv, mod, eq, ne, lt, gt, le, ge, pos, neg,
/third_party/mindspore/tests/st/ops/gpu/
Dtest_floordiv_op.py27 self.floordiv = P.FloorDiv()
30 return self.floordiv(x, y)
/third_party/python/Lib/test/
Dtest_abstract_numbers.py38 self.assertRaises(TypeError, operator.floordiv, c1, c2)
Dtest_operator.py172 self.assertRaises(TypeError, operator.floordiv, 5)
173 self.assertRaises(TypeError, operator.floordiv, None, None)
174 self.assertEqual(operator.floordiv(5, 2), 2)
Ddatetimetester.py20 from operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod
940 self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)
/third_party/python/Lib/
Doperator.py83 def floordiv(a, b): function
426 __floordiv__ = floordiv
Dfractions.py523 __floordiv__, __rfloordiv__ = _operator_fallbacks(_floordiv, operator.floordiv)
/third_party/node/tools/inspector_protocol/jinja2/
Dsandbox.py255 '//': operator.floordiv,
Dnodes.py30 '//': operator.floordiv,
/third_party/jinja2/
Dsandbox.py280 "//": operator.floordiv,
Dnodes.py19 "//": operator.floordiv,
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py280 "//": operator.floordiv,
Dnodes.py19 "//": operator.floordiv,
/third_party/mindspore/mindspore/ops/
Dfunctional.py69 floordiv = tensor_floordiv variable
/third_party/mindspore/tests/syntax/simple_expression/
Dtest_math_ops.py495 self.floordiv = P.FloorDiv()
498 z = self.floordiv(x, y)
/third_party/python/Doc/library/
Doperator.rst104 .. function:: floordiv(a, b)
381 | Division | ``a // b`` | ``floordiv(a, b)`` |
/third_party/protobuf/python/google/protobuf/internal/
Dtest_util.py760 return NonStandardInteger(operator.floordiv(self.val, y))
802 return NonStandardInteger(operator.floordiv(y, self.val))
/third_party/python/Doc/howto/
Dfunctional.rst1088 * Math operations: ``add()``, ``sub()``, ``mul()``, ``floordiv()``, ``abs()``, ...

12