Searched refs:py_str (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/python/training/ |
D | quantize_training_wrapper.cc | 32 PyObject* py_str = PyBytes_FromStringAndSize(result.data(), result.size()); in DoQuantizeTrainingOnGraphDefHelper() local 33 if (!py_str) { in DoQuantizeTrainingOnGraphDefHelper() 37 return py_str; in DoQuantizeTrainingOnGraphDefHelper()
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/python/ |
D | op_reg_gen.py | 108 py_str = attr.replace('"', '\'') 109 cxx_reg_code += '\n .Attr("{0}")'.format(py_str) 111 py_str = attr.replace('"', '\'') 112 cxx_reg_code += '\n .Attr("{0}")'.format(py_str)
|
/external/llvm-project/lldb/bindings/python/ |
D | python-typemaps.swig | 17 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>(); 18 if (!py_str.IsAllocated()) { 24 $1[i] = const_cast<char*>(py_str.GetString().data()); 464 PythonString py_str(PyRefType::Borrowed, $input); 465 llvm::StringRef str = py_str.GetString(); 476 py_str.release();
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_seq_tensor.cc | 582 PyObject* py_str = PyUnicode_AsUTF8String(v); in ConvertScalar() 583 if (py_str == nullptr) return ErrorConvertingUnicodeString; in ConvertScalar() 584 out->assign(PyBytes_AS_STRING(py_str), PyBytes_GET_SIZE(py_str)); in ConvertScalar() 585 Py_DECREF(py_str); in ConvertScalar()
|
/external/llvm-project/lldb/bindings/interface/ |
D | SBTarget.i | 608 PythonString py_str = list.GetItemAtIndex(i).AsType<PythonString>(); 609 if (!py_str.IsAllocated()) { 615 $1[i] = const_cast<char*>(py_str.GetString().data());
|
/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 | 1806 ScopedPyObjectPtr py_str(PyObject_Str(py_value.get())); in PrintDouble() local 1807 if (!py_str.get()) { in PrintDouble() 1811 return string(PyString_AsString(py_str.get())); in PrintDouble()
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tfe_src.cc | 2499 PyObject* py_str = PyUnicode_AsUTF8String(op_type); 2500 if (py_str == nullptr) { 2503 *op_type_string = PyBytes_AS_STRING(py_str); 2504 Py_DECREF(py_str);
|