So this is where this PR comes in! We respect when the user specifies py_limited_api and skip linking torch_python under that condition, allowing users to enroll in the provided functionality I just described. How do I know this PR works? I manually tested my silly little ultra_norm local...
if (op_type == SwigPyPacked_TypeOnce()) return 1; #ifdef Py_LIMITED_API int cmp; PyObject *tp_name = PyObject_GetAttrString((PyObject*)Py_TYPE(op), "__name__"); PyObject *tp_name = PyObject_GetAttrString((PyObject *)op_type, "__name__"); ...
Tensors and Dynamic neural networks in Python with strong GPU acceleration - Enable CPP/CUDAExtension with py_limited_api for python agnosticism · pytorch/pytorch@f9a887f
py_limited_api: return 'abi3' else: return 'none' def tag_platform(self): ''' @@ -812,17 +825,31 @@ def wheel_name_match(self, wheel): wheel2 = wheel[:-len('.whl')] name, version, tag_python, tag_abi, tag_platform = wheel2.split('-') py_limited_api_compatible = ...
Context: Extensions also need to be informed about the usage of the limited API. Description of the Change: Pass the Py_LIMITED_API macro to Extensions Benefits: Extensions will conform with the limited API. Pass Py_LIMITED_API macro to Extensions afb8a0f rauletorresc added the author:build...
The limited C API has the function PySequence_Fast() which should be used with these macros: PySequence_Fast_GET_SIZE() PySequence_Fast_GET_ITEM() PySequence_Fast_ITEMS() Problem: none of these 3 macros work with the limited C API. The w...
The function never worked with the limited C API. It was added by mistake. Issue: RFC: Clarify usage of macros for PySequence_Fast within the Limited C API #91417 📚 Documentation preview 📚: ...
The implementation of Py_INCREF() and Py_DECREF() functions changed in Python 3.12 to implement PEP 683 (Immortal Objects). Stable ABI sections of PEP 683 says: The implementation approach described in this PEP is compatible with extensi...
Tensors and Dynamic neural networks in Python with strong GPU acceleration - Enable CPP/CUDAExtension with py_limited_api for python agnosticism · pytorch/pytorch@fd96b44