TORCH_PYTHON_API contains ABI breaking changes in same version 2.6.0a0 路 Issue #144966 路 pytorch/pytorch (original) (raw)
馃悰 Describe the bug
The function signature THPVariable_Wrap changes between versions with the same major.minor.alpha. Specifically
- 2.6.0a0+ecf3bae40a -- TORCH_PYTHON_API PyObject* THPVariable_Wrap(at::TensorBase var);
- 2.6.0a0+df5bbc09d1 -- TORCH_PYTHON_API PyObject* THPVariable_Wrap(const at::TensorBase& var);
This causes breaking changes in any application that is linked against this API, because the name mangling for the method will change:
- 2.6.0a0+ecf3bae40a -- _Z16THPVariable_WrapN2at10TensorBaseE
- 2.6.0a0+df5bbc09d1 -- _Z16THPVariable_WrapRKN2at10TensorBaseE
If externs were used, this might not be an issue. However, that is not used for this API.
Impact is that any application compiled against 2.6.0a0 may not work with other versions at 2.6.0a0.
Versions
2.6.0a0+ecf3bae40a
2.6.0a0+df5bbc09d1