MCPcopy Create free account
hub / github.com/Sally-SH/VSP-LLM / __Pyx_PyObject_CallMethod0

Function __Pyx_PyObject_CallMethod0

fairseq/fairseq/data/data_utils_fast.cpp:27526–27539  ·  view source on GitHub ↗

PyObjectCallMethod0 */

Source from the content-addressed store, hash-verified

27524
27525/* PyObjectCallMethod0 */
27526 static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
27527 PyObject *method = NULL, *result = NULL;
27528 int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
27529 if (likely(is_method)) {
27530 result = __Pyx_PyObject_CallOneArg(method, obj);
27531 Py_DECREF(method);
27532 return result;
27533 }
27534 if (unlikely(!method)) goto bad;
27535 result = __Pyx_PyObject_CallNoArg(method);
27536 Py_DECREF(method);
27537bad:
27538 return result;
27539}
27540
27541/* ValidateBasesTuple */
27542 #if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS

Callers 1

Calls 3

__Pyx_PyObject_GetMethodFunction · 0.70
__Pyx_PyObject_CallNoArgFunction · 0.70

Tested by

no test coverage detected