MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx_PyObject_Call2Args

Function __Pyx_PyObject_Call2Args

eval/CIPO_evaluation/pycocotools/_mask.c:11629–11655  ·  view source on GitHub ↗

PyObjectCall2Args */

Source from the content-addressed store, hash-verified

11627
11628/* PyObjectCall2Args */
11629static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
11630 PyObject *args, *result = NULL;
11631 #if CYTHON_FAST_PYCALL
11632 if (PyFunction_Check(function)) {
11633 PyObject *args[2] = {arg1, arg2};
11634 return __Pyx_PyFunction_FastCall(function, args, 2);
11635 }
11636 #endif
11637 #if CYTHON_FAST_PYCCALL
11638 if (__Pyx_PyFastCFunction_Check(function)) {
11639 PyObject *args[2] = {arg1, arg2};
11640 return __Pyx_PyCFunction_FastCall(function, args, 2);
11641 }
11642 #endif
11643 args = PyTuple_New(2);
11644 if (unlikely(!args)) goto done;
11645 Py_INCREF(arg1);
11646 PyTuple_SET_ITEM(args, 0, arg1);
11647 Py_INCREF(arg2);
11648 PyTuple_SET_ITEM(args, 1, arg2);
11649 Py_INCREF(function);
11650 result = __Pyx_PyObject_Call(function, args, NULL);
11651 Py_DECREF(args);
11652 Py_DECREF(function);
11653done:
11654 return result;
11655}
11656
11657/* GetItemInt */
11658static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {

Calls 2

__Pyx_PyObject_CallFunction · 0.85

Tested by

no test coverage detected