Skip to content
Advertisement

Tag: segmentation-fault

pybind11 crashes (segmentation fault (core dumped)) while importing ONNX python module

I am using pybind11 in my C++ code. When I try to import onnx, my code crashes with Segmentation fault (core dumped). However, if I import onnxruntime, everything is well. Of course both onnx and onnxruntime are installed on my system via pip. The order of the import lines is irrelevant. Wherever it is, py::module::import(“onnx”) crashes with segmentation fault. How

Advertisement