Home
last modified time | relevance | path

Searched defs:capsule (Results 1 – 18 of 18) sorted by relevance

/external/python/cpython2/Doc/includes/
Dcapsulethunk.h8 #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/
Dcapsule.c17 _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/
Dcapsule.c17 _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/
DInterop.h86 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/
Dcustom_device_testutil.cc35 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/
Dpywrap_parallel_device.cc31 void CallDelete_Device(PyObject* capsule) { in CallDelete_Device()
36 void CallDelete_DeviceInfo(PyObject* capsule) { in CallDelete_DeviceInfo()
/external/llvm-project/mlir/lib/Bindings/Python/
DPass.cpp40 static pybind11::object createFromCapsule(pybind11::object capsule) { in createFromCapsule()
DIRModules.cpp427 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/
Ddlpack.cc303 py::capsule capsule(&pack.release()->tensor, kDlTensorCapsuleName, in BufferToDLPackManagedTensor() local
Dxla_compiler.cc142 py::capsule capsule, in PyRegisterCustomCallTarget()
/external/python/pybind11/include/pybind11/
Dpytypes.h1197 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/
Dctypes.h468 #define CAPSULE_DEREFERENCE(capsule, name) \ argument
479 #define CAPSULE_DEREFERENCE(capsule, name) \ argument
/external/python/pybind11/tests/
Dtest_pytypes.cpp111 auto capsule = py::capsule((void *) 12345, "pointer type description", [](PyObject *ptr) { in TEST_SUBMODULE() local
/external/tensorflow/tensorflow/python/
Dtfe_wrapper.cc1386 py::capsule capsule( in PYBIND11_MODULE() local
1387 dlm_ptr, tensorflow::kDlTensorCapsuleName, [](PyObject* capsule) { in PYBIND11_MODULE()
/external/python/cffi/c/
Dffi_obj.c982 static void _free_init_once_lock(PyObject *capsule) in _free_init_once_lock()
D_cffi_backend.c145 # define PyCapsule_GetPointer(capsule, name) \ argument
/external/python/cpython3/Python/
Dcompile.c631 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/
Dcompile.c518 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