Skip to content
Advertisement

Tag: onnx

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

Import onnx models to tensorflow2.x?

I created a modified lenet model using tensorflow that looks like this: When I finish training I save the model using tf.keras.models.save_model : Then I transform this model into onnx format using “tf2onnx” module: I want a method that can retrieve the same model into tensorflow2.x. I tried to use “onnx_tf” to transform the onnx model into tensorflow .pb model:

Advertisement