/aosp_15_r20/external/pytorch/torch/csrc/ |
H A D | Exceptions.cpp | 29 PyModule_AddObject(module, "FatalError", THPException_FatalError) == 0); in THPException_init() 57 PyModule_AddObject(module, "_LinAlgError", THPException_LinAlgError) == in THPException_init() 70 PyModule_AddObject( in THPException_init() 81 PyModule_AddObject(module, "_DistError", THPException_DistError) == 0); in THPException_init() 91 PyModule_AddObject( in THPException_init() 102 PyModule_AddObject( in THPException_init() 113 PyModule_AddObject( in THPException_init()
|
/aosp_15_r20/external/pytorch/torch/csrc/dynamo/ |
H A D | init.cpp | 38 if (dynamo == nullptr || PyModule_AddObject(torch, "_dynamo", dynamo) != 0) { in initDynamoBindings() 44 PyModule_AddObject(dynamo, "eval_frame", eval_frame) != 0) { in initDynamoBindings() 49 if (utils == nullptr || PyModule_AddObject(dynamo, "utils", utils) != 0) { in initDynamoBindings() 54 if (guards == nullptr || PyModule_AddObject(dynamo, "guards", guards) != 0) { in initDynamoBindings() 60 PyModule_AddObject(dynamo, "compiled_autograd", compiled_autograd) != 0) { in initDynamoBindings()
|
/aosp_15_r20/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 2962 PyModule_AddObject(m, "_test_structmembersType", (PyObject *)&test_structmembersType); in init_testcapi() 2964 PyModule_AddObject(m, "CHAR_MAX", PyInt_FromLong(CHAR_MAX)); in init_testcapi() 2965 PyModule_AddObject(m, "CHAR_MIN", PyInt_FromLong(CHAR_MIN)); in init_testcapi() 2966 PyModule_AddObject(m, "UCHAR_MAX", PyInt_FromLong(UCHAR_MAX)); in init_testcapi() 2967 PyModule_AddObject(m, "SHRT_MAX", PyInt_FromLong(SHRT_MAX)); in init_testcapi() 2968 PyModule_AddObject(m, "SHRT_MIN", PyInt_FromLong(SHRT_MIN)); in init_testcapi() 2969 PyModule_AddObject(m, "USHRT_MAX", PyInt_FromLong(USHRT_MAX)); in init_testcapi() 2970 PyModule_AddObject(m, "INT_MAX", PyLong_FromLong(INT_MAX)); in init_testcapi() 2971 PyModule_AddObject(m, "INT_MIN", PyLong_FromLong(INT_MIN)); in init_testcapi() 2972 PyModule_AddObject(m, "UINT_MAX", PyLong_FromUnsignedLong(UINT_MAX)); in init_testcapi() [all …]
|
D | _weakref.c | 139 PyModule_AddObject(m, "ref", in init_weakref() 142 PyModule_AddObject(m, "ReferenceType", in init_weakref() 145 PyModule_AddObject(m, "ProxyType", in init_weakref() 148 PyModule_AddObject(m, "CallableProxyType", in init_weakref()
|
D | xxmodule.c | 368 PyModule_AddObject(m, "error", ErrorObject); in initxx() 373 PyModule_AddObject(m, "Str", (PyObject *)&Str_Type); in initxx() 378 PyModule_AddObject(m, "Null", (PyObject *)&Null_Type); in initxx()
|
D | timemodule.c | 823 PyModule_AddObject(m, "tzname", in inittimezone() 850 PyModule_AddObject(m, "tzname", in inittimezone() 858 PyModule_AddObject(m, "tzname", in inittimezone() 870 PyModule_AddObject(m, "tzname", in inittimezone() 985 PyModule_AddObject(m, "struct_time", (PyObject*) &StructTimeType); in inittime()
|
D | resource.c | 261 PyModule_AddObject(m, "error", ResourceError); in initresource() 266 PyModule_AddObject(m, "struct_rusage", in initresource() 343 PyModule_AddObject(m, "RLIM_INFINITY", v); in initresource()
|
D | pyexpat.c | 1868 PyModule_AddObject(m, "error", ErrorObject); in MODULE_INITFUNC() 1870 PyModule_AddObject(m, "ExpatError", ErrorObject); in MODULE_INITFUNC() 1872 PyModule_AddObject(m, "XMLParserType", (PyObject *) &Xmlparsetype); in MODULE_INITFUNC() 1877 PyModule_AddObject(m, "__version__", version); in MODULE_INITFUNC() 1882 PyModule_AddObject(m, "version_info", in MODULE_INITFUNC() 1903 PyModule_AddObject(m, "errors", errors_module); in MODULE_INITFUNC() 1913 PyModule_AddObject(m, "model", model_module); in MODULE_INITFUNC() 1947 PyModule_AddObject(m, "features", list); in MODULE_INITFUNC() 2049 PyModule_AddObject(m, "expat_CAPI", capi_object); in MODULE_INITFUNC()
|
D | pwdmodule.c | 203 PyModule_AddObject(m, "struct_passwd", (PyObject *) &StructPwdType); 206 PyModule_AddObject(m, "struct_pwent", (PyObject *) &StructPwdType);
|
/aosp_15_r20/external/pytorch/torch/csrc/utils/ |
H A D | tensor_layouts.cpp | 16 if (PyModule_AddObject(torch_module, "" #layout, layout##_layout) != 0) { \ 29 if (PyModule_AddObject(torch_module, "strided", strided_layout) != 0) { in initializeLayouts() 37 if (PyModule_AddObject(torch_module, "sparse_coo", sparse_coo_layout) != 0) { in initializeLayouts() 49 if (PyModule_AddObject(torch_module, "_mkldnn", mkldnn_layout) != 0) { in initializeLayouts()
|
H A D | tensor_dtypes.cpp | 27 if (PyModule_AddObject(torch_module.get(), primary_name.c_str(), dtype) != in initializeDtypes() 33 if (PyModule_AddObject(torch_module.get(), legacy_name.c_str(), dtype) != in initializeDtypes()
|
/aosp_15_r20/external/python/cpython2/Modules/_sqlite/ |
D | module.c | 323 PyModule_AddObject(module, "Connection", (PyObject*) &pysqlite_ConnectionType); in init_sqlite3() 325 PyModule_AddObject(module, "Cursor", (PyObject*) &pysqlite_CursorType); in init_sqlite3() 327 PyModule_AddObject(module, "Statement", (PyObject*)&pysqlite_StatementType); in init_sqlite3() 329 PyModule_AddObject(module, "Cache", (PyObject*) &pysqlite_CacheType); in init_sqlite3() 331 PyModule_AddObject(module, "PrepareProtocol", (PyObject*) &pysqlite_PrepareProtocolType); in init_sqlite3() 333 PyModule_AddObject(module, "Row", (PyObject*) &pysqlite_RowType); in init_sqlite3()
|
/aosp_15_r20/external/python/cpython3/Modules/ |
D | _weakref.c | 149 if (PyModule_AddObject(module, "ref", (PyObject *) &_PyWeakref_RefType) < 0) { in weakref_exec() 154 if (PyModule_AddObject(module, "ReferenceType", in weakref_exec() 160 if (PyModule_AddObject(module, "ProxyType", in weakref_exec() 166 if (PyModule_AddObject(module, "CallableProxyType", in weakref_exec()
|
D | _testcapimodule.c | 8019 PyModule_AddObject(m, "_test_structmembersType", (PyObject *)&test_structmembersType); in PyInit__testcapi() 8023 PyModule_AddObject(m, "matmulType", (PyObject *)&matmulType); in PyInit__testcapi() 8028 PyModule_AddObject(m, "ipowType", (PyObject *)&ipowType); in PyInit__testcapi() 8033 PyModule_AddObject(m, "awaitType", (PyObject *)&awaitType); in PyInit__testcapi() 8039 PyModule_AddObject(m, "MyList", (PyObject *)&MyList_Type); in PyInit__testcapi() 8044 PyModule_AddObject(m, "MethodDescriptorBase", (PyObject *)&MethodDescriptorBase_Type); in PyInit__testcapi() 8050 PyModule_AddObject(m, "MethodDescriptorDerived", (PyObject *)&MethodDescriptorDerived_Type); in PyInit__testcapi() 8056 PyModule_AddObject(m, "MethodDescriptorNopGet", (PyObject *)&MethodDescriptorNopGet_Type); in PyInit__testcapi() 8062 PyModule_AddObject(m, "MethodDescriptor2", (PyObject *)&MethodDescriptor2_Type); in PyInit__testcapi() 8067 PyModule_AddObject(m, "GenericAlias", (PyObject *)&GenericAlias_Type); in PyInit__testcapi() [all …]
|
D | xxlimited_35.c | 259 if (PyModule_AddObject(m, "error", ErrorObject) < 0) { in xx_modexec() 269 if (PyModule_AddObject(m, "Xxo", Xxo_Type) < 0) { in xx_modexec() 279 if (PyModule_AddObject(m, "Str", o) < 0) { in xx_modexec() 289 if (PyModule_AddObject(m, "Null", o) < 0) { in xx_modexec()
|
D | _testmultiphase.c | 392 if (PyModule_AddObject(m, "Example", temp) != 0) { in execfunc() 403 if (PyModule_AddObject(m, "error", temp) != 0) { in execfunc() 413 if (PyModule_AddObject(m, "Str", temp) != 0) { in execfunc() 840 if (PyModule_AddObject(m, "StateAccessType", temp) != 0) { in meth_state_access_exec()
|
D | _stat.c | 595 if (PyModule_AddObject(module, "IO_REPARSE_TAG_SYMLINK", in stat_exec() 599 if (PyModule_AddObject(module, "IO_REPARSE_TAG_MOUNT_POINT", in stat_exec() 603 if (PyModule_AddObject(module, "IO_REPARSE_TAG_APPEXECLINK", in stat_exec()
|
/aosp_15_r20/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 274 PyModule_AddObject(module, "Connection", (PyObject*)&ConnectionType); in init_multiprocessing() 295 PyModule_AddObject(module, "SemLock", (PyObject*)&SemLockType); in init_multiprocessing() 303 PyModule_AddObject(module, "PipeConnection", in init_multiprocessing() 310 PyModule_AddObject(module, "win32", temp); in init_multiprocessing() 350 if (PyModule_AddObject(module, "flags", temp) < 0) in init_multiprocessing()
|
/aosp_15_r20/external/python/cpython2/Mac/Modules/carbonevt/ |
D | _CarbonEvtmodule.c | 2161 PyModule_AddObject(m, "EventRef", (PyObject *)&EventRef_Type); in init_CarbonEvt() 2164 PyModule_AddObject(m, "EventRefType", (PyObject *)&EventRef_Type); in init_CarbonEvt() 2168 PyModule_AddObject(m, "EventQueueRef", (PyObject *)&EventQueueRef_Type); in init_CarbonEvt() 2171 PyModule_AddObject(m, "EventQueueRefType", (PyObject *)&EventQueueRef_Type); in init_CarbonEvt() 2175 PyModule_AddObject(m, "EventLoopRef", (PyObject *)&EventLoopRef_Type); in init_CarbonEvt() 2178 PyModule_AddObject(m, "EventLoopRefType", (PyObject *)&EventLoopRef_Type); in init_CarbonEvt() 2182 PyModule_AddObject(m, "EventLoopTimerRef", (PyObject *)&EventLoopTimerRef_Type); in init_CarbonEvt() 2185 PyModule_AddObject(m, "EventLoopTimerRefType", (PyObject *)&EventLoopTimerRef_Type); in init_CarbonEvt() 2189 PyModule_AddObject(m, "EventHandlerRef", (PyObject *)&EventHandlerRef_Type); in init_CarbonEvt() 2192 PyModule_AddObject(m, "EventHandlerRefType", (PyObject *)&EventHandlerRef_Type); in init_CarbonEvt() [all …]
|
/aosp_15_r20/external/cronet/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | message.cc | 2910 PyModule_AddObject(m, "MessageMeta", in InitProto2MessageModule() 2928 PyModule_AddObject(m, "Message", reinterpret_cast<PyObject*>(CMessage_Type)); in InitProto2MessageModule() 2936 PyModule_AddObject( in InitProto2MessageModule() 2944 PyModule_AddObject( in InitProto2MessageModule() 2978 PyModule_AddObject(m, "UnknownFieldSet", in InitProto2MessageModule() 2993 PyModule_AddObject(m, "ScalarMapContainer", in InitProto2MessageModule() 2995 PyModule_AddObject(m, "MessageMapContainer", in InitProto2MessageModule() 2997 PyModule_AddObject(m, "MapIterator", in InitProto2MessageModule() 3003 PyModule_AddObject(m, "ExtensionDict", in InitProto2MessageModule() 3008 PyModule_AddObject(m, "ExtensionIterator", in InitProto2MessageModule() [all …]
|
/aosp_15_r20/external/protobuf/python/google/protobuf/pyext/ |
H A D | message.cc | 2910 PyModule_AddObject(m, "MessageMeta", in InitProto2MessageModule() 2928 PyModule_AddObject(m, "Message", reinterpret_cast<PyObject*>(CMessage_Type)); in InitProto2MessageModule() 2936 PyModule_AddObject( in InitProto2MessageModule() 2944 PyModule_AddObject( in InitProto2MessageModule() 2978 PyModule_AddObject(m, "UnknownFieldSet", in InitProto2MessageModule() 2993 PyModule_AddObject(m, "ScalarMapContainer", in InitProto2MessageModule() 2995 PyModule_AddObject(m, "MessageMapContainer", in InitProto2MessageModule() 2997 PyModule_AddObject(m, "MapIterator", in InitProto2MessageModule() 3003 PyModule_AddObject(m, "ExtensionDict", in InitProto2MessageModule() 3008 PyModule_AddObject(m, "ExtensionIterator", in InitProto2MessageModule() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/python/ |
D | protobuf.c | 108 PyModule_AddObject(m, "__internal_wktbases", state->wkt_bases); in PyUpb_GetWktBases() 265 return type && PyModule_AddObject(m, name, type) == 0 ? (PyTypeObject*)type in AddObject() 282 if (PyModule_AddObject(m, name, type) < 0) { in PyUpb_AddClass() 293 if (PyModule_AddObject(m, name, type) < 0) { in PyUpb_AddClassWithBases()
|
/aosp_15_r20/external/pytorch/tools/autograd/templates/ |
H A D | python_return_types.cpp | 26 if (PyModule_AddObject( in addReturnType() 46 if (PyModule_AddObject(module, "_return_types", return_types_module) != 0) { in initReturnTypes()
|
/aosp_15_r20/external/python/cpython2/Modules/_ctypes/ |
D | _ctypes.c | 5687 PyModule_AddObject(m, "_pointer_type_cache", (PyObject *)_ctypes_ptrtype_cache); in init_ctypes() 5746 PyModule_AddObject(m, "Structure", (PyObject *)&Struct_Type); in init_ctypes() 5753 PyModule_AddObject(m, "Union", (PyObject *)&Union_Type); in init_ctypes() 5760 PyModule_AddObject(m, "_Pointer", (PyObject *)&PyCPointer_Type); in init_ctypes() 5767 PyModule_AddObject(m, "Array", (PyObject *)&PyCArray_Type); in init_ctypes() 5774 PyModule_AddObject(m, "_SimpleCData", (PyObject *)&Simple_Type); in init_ctypes() 5781 PyModule_AddObject(m, "CFuncPtr", (PyObject *)&PyCFuncPtr_Type); in init_ctypes() 5804 PyModule_AddObject(m, "COMError", ComError); in init_ctypes() 5806 PyModule_AddObject(m, "FUNCFLAG_HRESULT", PyInt_FromLong(FUNCFLAG_HRESULT)); in init_ctypes() 5807 PyModule_AddObject(m, "FUNCFLAG_STDCALL", PyInt_FromLong(FUNCFLAG_STDCALL)); in init_ctypes() [all …]
|
/aosp_15_r20/external/python/cpython2/Mac/Modules/cf/ |
D | _CFmodule.c | 4905 PyModule_AddObject(m, "CFTypeRef", (PyObject *)&CFTypeRef_Type); in init_CF() 4908 PyModule_AddObject(m, "CFTypeRefType", (PyObject *)&CFTypeRef_Type); in init_CF() 4913 PyModule_AddObject(m, "CFArrayRef", (PyObject *)&CFArrayRef_Type); in init_CF() 4916 PyModule_AddObject(m, "CFArrayRefType", (PyObject *)&CFArrayRef_Type); in init_CF() 4921 PyModule_AddObject(m, "CFMutableArrayRef", (PyObject *)&CFMutableArrayRef_Type); in init_CF() 4924 PyModule_AddObject(m, "CFMutableArrayRefType", (PyObject *)&CFMutableArrayRef_Type); in init_CF() 4929 PyModule_AddObject(m, "CFDictionaryRef", (PyObject *)&CFDictionaryRef_Type); in init_CF() 4932 PyModule_AddObject(m, "CFDictionaryRefType", (PyObject *)&CFDictionaryRef_Type); in init_CF() 4937 PyModule_AddObject(m, "CFMutableDictionaryRef", (PyObject *)&CFMutableDictionaryRef_Type); in init_CF() 4940 PyModule_AddObject(m, "CFMutableDictionaryRefType", (PyObject *)&CFMutableDictionaryRef_Type); in init_CF() [all …]
|