Searched refs:py_list (Results 1 – 6 of 6) sorted by relevance
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_database.cc | 159 ScopedPyObjectPtr py_list( in FindAllExtensionNumbers() local 162 if (py_list == NULL) { in FindAllExtensionNumbers() 166 Py_ssize_t size = PyList_Size(py_list.get()); in FindAllExtensionNumbers() 169 ScopedPyObjectPtr item(PySequence_GetItem(py_list.get(), i)); in FindAllExtensionNumbers()
|
/external/tensorflow/tensorflow/python/client/ |
D | tf_session_wrapper.cc | 233 py::list py_list; in PYBIND11_MODULE() local 235 py_list.append(py::cast(result[i])); in PYBIND11_MODULE() 239 py::tuple result_tuple = py::make_tuple(py_list, py::cast(unknown_shape)); in PYBIND11_MODULE() 541 py::list py_list; in PYBIND11_MODULE() local 544 py_list.append(obj); in PYBIND11_MODULE() 546 return py_list; in PYBIND11_MODULE() 822 py::list py_list; in PYBIND11_MODULE() local 825 py_list.append(tf_output); in PYBIND11_MODULE() 827 return py_list; in PYBIND11_MODULE() 836 py::list py_list; in PYBIND11_MODULE() local [all …]
|
/external/python/cpython2/Modules/ |
D | gcmodule.c | 305 append_objects(PyObject *py_list, PyGC_Head *gc_list) in append_objects() argument 310 if (op != py_list) { in append_objects() 311 if (PyList_Append(py_list, op)) { in append_objects()
|
/external/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
D | PythonDataObjectsTests.cpp | 318 PyObject *py_list = PyList_New(2); in TEST_F() local 319 EXPECT_TRUE(PythonList::Check(py_list)); in TEST_F() 320 PythonList list(PyRefType::Owned, py_list); in TEST_F()
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tfe_src.cc | 376 TFE_Context* ctx, TFE_Op* op, const char* key, PyObject* py_list, in SetOpAttrList() argument 380 if (!PySequence_Check(py_list)) { in SetOpAttrList() 384 ", got ", py_list->ob_type->tp_name) in SetOpAttrList() 388 const int num_values = PySequence_Size(py_list); in SetOpAttrList() 394 tensorflow::Safe_PyObjectPtr py_value(PySequence_ITEM(py_list, i)); \ in SetOpAttrList() 403 tensorflow::Safe_PyObjectPtr py_value(PySequence_ITEM(py_list, i)); in SetOpAttrList() 428 tensorflow::Safe_PyObjectPtr py_value(PySequence_ITEM(py_list, i)); in SetOpAttrList() 453 tensorflow::Safe_PyObjectPtr py_value(PySequence_ITEM(py_list, i)); in SetOpAttrList() 485 tensorflow::Safe_PyObjectPtr py_value(PySequence_ITEM(py_list, i)); in SetOpAttrList()
|
/external/python/cpython3/Modules/ |
D | gcmodule.c | 333 append_objects(PyObject *py_list, PyGC_Head *gc_list) in append_objects() argument 338 if (op != py_list) { in append_objects() 339 if (PyList_Append(py_list, op)) { in append_objects()
|