KEPLER
KEPLER copied to clipboard
pybind11::handle::inc_ref() is being called while the GIL is either not held or invalid.
In KG embedding, Link Prediction task, while executing 'python evaluate_transe_transductive.py', pybind11 error is popping out,
------------- link_prediction -------------- effective triplets: 14 / 14 effective filter triplets: 43160 / 43160 pybind11::handle::inc_ref() is being called while the GIL is either not held or invalid. Please see https://pybind11.readthedocs.io/en/stable/advanced/misc.html#common-sources-of-global-interpreter-lock-errors for debugging advice. If you are convinced there is no bug in your code, you can #define PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF to disable this check. In that case you have to ensure this #define is consistently used for all translation units linked into a given pybind11 extension, otherwise there will be ODR violations. The failing pybind11::handle::inc_ref() call was triggered on a numpy.dtypes.Float32DType object. pybind11::handle::dec_ref() is being called while the GIL is either not held or invalid. Please see https://pybind11.readthedocs.io/en/stable/advanced/misc.html#common-sources-of-global-interpreter-lock-errors for debugging advice. If you are convinced there is no bug in your code, you can #define PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF to disable this check. In that case you have to ensure this #define is consistently used for all translation units linked into a given pybind11 extension, otherwise there will be ODR violations. The failing pybind11::handle::dec_ref() call was triggered on a numpy.dtypes.Float32DType object. terminate called after throwing an instance of 'std::runtime_error' what(): pybind11::handle::dec_ref() PyGILState_Check() failure. Aborted (core dumped)