Home
last modified time | relevance | path

Searched refs:py_key (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
DcPickle.c4221 PyObject *py_key = 0, *value = 0; in load_binget() local
4229 if (!( py_key = PyInt_FromLong((long)key))) return -1; in load_binget()
4231 value = PyDict_GetItem(self->memo, py_key); in load_binget()
4233 PyErr_SetObject(BadPickleGet, py_key); in load_binget()
4241 Py_DECREF(py_key); in load_binget()
4249 PyObject *py_key = 0, *value = 0; in load_long_binget() local
4266 if (!( py_key = PyInt_FromLong((long)key))) return -1; in load_long_binget()
4268 value = PyDict_GetItem(self->memo, py_key); in load_long_binget()
4270 PyErr_SetObject(BadPickleGet, py_key); in load_long_binget()
4278 Py_DECREF(py_key); in load_long_binget()
[all …]
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc754 PyObject* py_key = PyTuple_GET_ITEM(attrs, start_index + i); in SetOpAttrs() local
757 const char* key = PyBytes_Check(py_key) ? PyBytes_AsString(py_key) in SetOpAttrs()
758 : PyUnicode_AsUTF8(py_key); in SetOpAttrs()
760 const char* key = PyBytes_AsString(py_key); in SetOpAttrs()