Searched refs:py_str (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/python/training/ |
D | quantize_training.i | 35 PyObject* py_str = PyBytes_FromStringAndSize(result.data(), result.size()); in DoQuantizeTrainingOnGraphDefHelper() local 36 if (!py_str) { in DoQuantizeTrainingOnGraphDefHelper() 43 return py_str; in DoQuantizeTrainingOnGraphDefHelper()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | strings.i | 95 PyObject* py_str = PyBytes_FromStringAndSize(op.data(), op.size()); variable 96 if (!py_str) { 99 converted.emplace_back(tensorflow::make_safe(py_str));
|
D | py_seq_tensor.cc | 437 PyObject* py_str = PyUnicode_AsUTF8String(v); in ConvertOneString() 438 if (py_str == nullptr) return ErrorConvertingUnicodeString; in ConvertOneString() 439 out->assign(PyBytes_AS_STRING(py_str), PyBytes_GET_SIZE(py_str)); in ConvertOneString() 440 Py_DECREF(py_str); in ConvertOneString()
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 480 PyObject *py_str = 0, *junk = 0; in write_other() local 484 py_str = PyString_FromStringAndSize(self->write_buf, in write_other() 486 if (!py_str) in write_other() 496 if (!( py_str = in write_other() 509 ARG_TUP(self, py_str); in write_other() 518 PDATA_PUSH(self->file, py_str, -1); in write_other() 4193 PyObject *py_str = 0, *value = 0; in load_get() local 4201 if (!( py_str = PyString_FromStringAndSize(s, len - 1))) return -1; in load_get() 4203 value = PyDict_GetItem(self->memo, py_str); in load_get() 4205 PyErr_SetObject(BadPickleGet, py_str); in load_get() [all …]
|
/external/protobuf/python/google/protobuf/pyext/ |
D | message.cc | 1804 ScopedPyObjectPtr py_str(PyObject_Str(py_value.get())); in CheckAndGetInteger() local 1805 if (!py_str.get()) { in CheckAndGetInteger() 1809 return string(PyString_AsString(py_str.get())); in CheckAndGetInteger()
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tfe_src.cc | 1603 PyObject* py_str = PyUnicode_AsUTF8String(op_type); 1604 if (py_str == nullptr) return; 1605 op_type_str = PyBytes_AS_STRING(py_str); 1606 Py_DECREF(py_str);
|