MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / PyCheckInteger

Function PyCheckInteger

paddle/fluid/pybind/eager_math_op_patch.cc:58–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56using egr::ConvertAllInputsToDistTensor;
57using egr::InputsContainDistTensor;
58
59namespace paddle::pybind {
60
61static bool PyCheckInteger(PyObject* obj) {
62 return PyLong_Check(obj) && !PyBool_Check(obj);
63}

Callers 15

tensor__add__methodFunction · 0.70
tensor__sub__methodFunction · 0.70
tensor__rsub__methodFunction · 0.70
tensor__mul__methodFunction · 0.70
tensor__div__methodFunction · 0.70
tensor__rdiv__methodFunction · 0.70
tensor__gt__methodFunction · 0.70
tensor__ge__methodFunction · 0.70
tensor__mod__methodFunction · 0.70
tensor__rmod__methodFunction · 0.70
tensor__matmul__methodFunction · 0.70
tensor__rmatmul__methodFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected