Home
last modified time | relevance | path

Searched refs:py_code (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/python/profiler/internal/
Dpython_hooks.cc50 std::string GetEventName(PyCodeObject* py_code) { in GetEventName() argument
51 string filename(py::reinterpret_borrow<py::str>(py_code->co_filename)); in GetEventName()
53 if (py_code->co_name == nullptr) { in GetEventName()
56 function = py::reinterpret_borrow<py::str>(py_code->co_name); in GetEventName()
59 return absl::StrCat("$", io::Basename(filename), ":", py_code->co_firstlineno, in GetEventName()
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c154 PyCodeObject *py_code = 0; in _ctypes_add_traceback() local
159 py_code = PyCode_NewEmpty(filename, funcname, lineno); in _ctypes_add_traceback()
160 if (!py_code) goto bad; in _ctypes_add_traceback()
163 py_code, /*PyCodeObject *code,*/ in _ctypes_add_traceback()
172 Py_XDECREF(py_code); in _ctypes_add_traceback()
/external/python/cpython2/Modules/
DcPickle.c2252 PyObject *py_code; /* extension code as Python object */ in save_global() local
2259 py_code = PyDict_GetItem(extension_registry, two_tuple); in save_global()
2260 if (py_code == NULL) in save_global()
2264 if (!PyInt_Check(py_code)) { in save_global()
2267 "OO", args, py_code); in save_global()
2270 code = PyInt_AS_LONG(py_code); in save_global()
4290 PyObject *py_code; /* code as a Python int */ in load_extension() local
4305 py_code = PyInt_FromLong(code); in load_extension()
4306 if (py_code == NULL) return -1; in load_extension()
4307 obj = PyDict_GetItem(extension_cache, py_code); in load_extension()
[all …]
/external/python/cpython3/Modules/
D_pickle.c6313 PyObject *py_code; /* code as a Python int */ in load_extension() local
6330 py_code = PyLong_FromLong(code); in load_extension()
6331 if (py_code == NULL) in load_extension()
6333 obj = PyDict_GetItemWithError(st->extension_cache, py_code); in load_extension()
6336 Py_DECREF(py_code); in load_extension()
6341 Py_DECREF(py_code); in load_extension()
6346 pair = PyDict_GetItemWithError(st->inverted_registry, py_code); in load_extension()
6348 Py_DECREF(py_code); in load_extension()
6375 Py_DECREF(py_code); in load_extension()
6379 code = PyDict_SetItem(st->extension_cache, py_code, obj); in load_extension()
[all …]