Searched refs:code_obj (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Objects/ |
D | funcobject.c | 19 PyCodeObject *code_obj = (PyCodeObject *)code; in PyFunction_NewWithQualName() local 20 Py_INCREF(code_obj); in PyFunction_NewWithQualName() 22 PyObject *name = code_obj->co_name; in PyFunction_NewWithQualName() 30 PyObject *consts = code_obj->co_consts; in PyFunction_NewWithQualName() 70 op->func_code = (PyObject*)code_obj; in PyFunction_NewWithQualName() 86 Py_DECREF(code_obj); in PyFunction_NewWithQualName()
|
D | frameobject.c | 124 markblocks(PyCodeObject *code_obj, int len) in markblocks() argument 127 (const _Py_CODEUNIT *)PyBytes_AS_STRING(code_obj->co_code); in markblocks()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | primitive_py.cc | 222 py::object code_obj = py::getattr(hook_, "__code__"); in RunCellHookFunction() local 223 py::object co_name = py::getattr(code_obj, "co_name"); in RunCellHookFunction() 252 py::object code_obj = py::getattr(hook_, "__code__"); in RunVariableHookFunction() local 253 py::object co_name = py::getattr(code_obj, "co_name"); in RunVariableHookFunction()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/ |
D | data_converter.cc | 132 py::object code_obj = py::getattr(bprop_func, "__code__"); in ConvertToBpropCut() local 135 …size_t inputs_num = py::cast<int64_t>(py::getattr(code_obj, "co_argcount")) - kBpropExcludeParamNu… in ConvertToBpropCut()
|
/third_party/python/Modules/ |
D | _pickle.c | 3654 PyObject *code_obj; /* extension code as Python object */ in save_global() local 3663 code_obj = PyDict_GetItemWithError(st->extension_registry, in save_global() 3668 if (code_obj == NULL) { in save_global() 3680 if (!PyLong_Check(code_obj)) { in save_global() 3683 obj, code_obj); in save_global() 3686 code = PyLong_AS_LONG(code_obj); in save_global()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/ |
D | pynative_execute.cc | 2475 py::object code_obj = py::getattr(bprop_func, "__code__"); in DoGradForCustomBprop() local 2476 py::object co_name = py::getattr(code_obj, "co_name"); in DoGradForCustomBprop() 2481 const size_t inputs_num = py::cast<int64_t>(py::getattr(code_obj, "co_argcount")) - 3; in DoGradForCustomBprop()
|