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

Function __Pyx_PyObject_IsTrue

fairseq/fairseq/data/data_utils_fast.cpp:32243–32247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32241 }
32242}
32243static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
32244 int is_true = x == Py_True;
32245 if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
32246 else return PyObject_IsTrue(x);
32247}
32248static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
32249 int retval;
32250 if (unlikely(!x)) return -1;

Calls

no outgoing calls

Tested by

no test coverage detected