/external/python/cpython2/Doc/includes/ |
D | capsulethunk.h | 8 #define __PyCapsule_GetField(capsule, field, default_value) \ argument 14 #define __PyCapsule_SetField(capsule, field, value) \ argument 23 #define PyCapsule_CheckExact(capsule) (PyCObject_Check(capsule)) argument 24 #define PyCapsule_IsValid(capsule, name) (PyCObject_Check(capsule)) argument 31 #define PyCapsule_GetPointer(capsule, name) \ argument 35 #define PyCapsule_SetPointer(capsule, pointer) \ argument 39 #define PyCapsule_GetDestructor(capsule) \ argument 42 #define PyCapsule_SetDestructor(capsule, dtor) \ argument 50 #define PyCapsule_GetName(capsule) NULL argument 53 PyCapsule_SetName(PyObject *capsule, const char *unused) in PyCapsule_SetName() [all …]
|
/external/python/cpython3/Objects/ |
D | capsule.c | 17 _is_legal_capsule(PyCapsule *capsule, const char *invalid_capsule) in _is_legal_capsule() 26 #define is_legal_capsule(capsule, name) \ argument 46 PyCapsule *capsule; in PyCapsule_New() local 70 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_IsValid() local 82 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetPointer() local 100 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetName() local 112 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetDestructor() local 124 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetContext() local 136 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_SetPointer() local 155 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_SetName() local [all …]
|
/external/python/cpython2/Objects/ |
D | capsule.c | 17 _is_legal_capsule(PyCapsule *capsule, const char *invalid_capsule) in _is_legal_capsule() 26 #define is_legal_capsule(capsule, name) \ argument 46 PyCapsule *capsule; in PyCapsule_New() local 70 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_IsValid() local 82 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetPointer() local 100 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetName() local 112 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetDestructor() local 124 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_GetContext() local 136 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_SetPointer() local 155 PyCapsule *capsule = (PyCapsule *)o; in PyCapsule_SetName() local [all …]
|
/external/llvm-project/mlir/include/mlir-c/Bindings/Python/ |
D | Interop.h | 86 static inline MlirAttribute mlirPythonCapsuleToAttribute(PyObject *capsule) { in mlirPythonCapsuleToAttribute() 104 static inline MlirContext mlirPythonCapsuleToContext(PyObject *capsule) { in mlirPythonCapsuleToContext() 122 static inline MlirLocation mlirPythonCapsuleToLocation(PyObject *capsule) { in mlirPythonCapsuleToLocation() 140 static inline MlirModule mlirPythonCapsuleToModule(PyObject *capsule) { in mlirPythonCapsuleToModule() 158 mlirPythonCapsuleToPassManager(PyObject *capsule) { in mlirPythonCapsuleToPassManager() 176 static inline MlirOperation mlirPythonCapsuleToOperation(PyObject *capsule) { in mlirPythonCapsuleToOperation() 195 static inline MlirType mlirPythonCapsuleToType(PyObject *capsule) { in mlirPythonCapsuleToType()
|
/external/tensorflow/tensorflow/python/eager/ |
D | custom_device_testutil.cc | 35 void CallDelete_Flag(PyObject* capsule) { in CallDelete_Flag() 39 void CallDelete_Device(PyObject* capsule) { in CallDelete_Device() 44 void CallDelete_DeviceInfo(PyObject* capsule) { in CallDelete_DeviceInfo()
|
/external/tensorflow/tensorflow/python/distribute/parallel_device/ |
D | pywrap_parallel_device.cc | 31 void CallDelete_Device(PyObject* capsule) { in CallDelete_Device() 36 void CallDelete_DeviceInfo(PyObject* capsule) { in CallDelete_DeviceInfo()
|
/external/llvm-project/mlir/lib/Bindings/Python/ |
D | Pass.cpp | 40 static pybind11::object createFromCapsule(pybind11::object capsule) { in createFromCapsule()
|
D | IRModules.cpp | 427 py::object PyMlirContext::createFromCapsule(py::object capsule) { in createFromCapsule() 649 PyLocation PyLocation::createFromCapsule(py::object capsule) { in createFromCapsule() 720 py::object PyModule::createFromCapsule(py::object capsule) { in createFromCapsule() 1123 PyAttribute PyAttribute::createFromCapsule(py::object capsule) { in createFromCapsule() 1152 PyType PyType::createFromCapsule(py::object capsule) { in createFromCapsule()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | dlpack.cc | 303 py::capsule capsule(&pack.release()->tensor, kDlTensorCapsuleName, in BufferToDLPackManagedTensor() local
|
D | xla_compiler.cc | 142 py::capsule capsule, in PyRegisterCustomCallTarget()
|
/external/python/pybind11/include/pybind11/ |
D | pytypes.h | 1197 PYBIND11_OBJECT_DEFAULT(capsule, object, PyCapsule_CheckExact) in PYBIND11_OBJECT_DEFAULT() argument 1208 capsule(const void *value, void (*destruct)(PyObject *)) in capsule() function 1214 capsule(const void *value, void (*destructor)(void *)) { in capsule() function 1228 capsule(void (*destructor)()) { in capsule() function
|
/external/python/cpython2/Modules/_ctypes/ |
D | ctypes.h | 468 #define CAPSULE_DEREFERENCE(capsule, name) \ argument 479 #define CAPSULE_DEREFERENCE(capsule, name) \ argument
|
/external/python/pybind11/tests/ |
D | test_pytypes.cpp | 111 auto capsule = py::capsule((void *) 12345, "pointer type description", [](PyObject *ptr) { in TEST_SUBMODULE() local
|
/external/tensorflow/tensorflow/python/ |
D | tfe_wrapper.cc | 1386 py::capsule capsule( in PYBIND11_MODULE() local 1387 dlm_ptr, tensorflow::kDlTensorCapsuleName, [](PyObject* capsule) { in PYBIND11_MODULE()
|
/external/python/cffi/c/ |
D | ffi_obj.c | 982 static void _free_init_once_lock(PyObject *capsule) in _free_init_once_lock()
|
D | _cffi_backend.c | 145 # define PyCapsule_GetPointer(capsule, name) \ argument
|
/external/python/cpython3/Python/ |
D | compile.c | 631 PyObject *capsule = PyCapsule_New(c->u, CAPSULE_NAME, NULL); in compiler_enter_scope() local 662 PyObject *capsule; in compiler_exit_scope() local 697 PyObject *mangled, *capsule; in compiler_set_qualname() local
|
/external/python/cpython2/Python/ |
D | compile.c | 518 PyObject *capsule = PyCapsule_New(c->u, COMPILER_CAPSULE_NAME_COMPILER_UNIT, NULL); in compiler_enter_scope() local 541 PyObject *capsule; in compiler_exit_scope() local
|