Closed natangoldgm closed 7 months ago
I didn't see how this issue is related to ort-extensions here. For the error message, it looks like onnxruntime complains about API_VERSION 18 is too high, it might be caused by the wrong onnxruntime.so was loaded.
@wenbingl So the problem is that python onnxruntime version is not matching cpp onnxruntime?
That was indeed misalignment between ort c++ version and ort python version. Closing this ticket, thanks.
Hi, I want to compile ort custom ops for that I'm trying to implement RegisterCustomOps in the cpp implementation file. I compiled onnxruntime extensions and onnxruntime from main. My error is happening when creating Ort::CustomOpDomain. The error is coming when I'm calling to: so.register_custom_ops_library(custom_op_path) This is the error: The given version [18] is not supported, only version 1 to 10 is supported in this build.
This is my register function:
This is my code compiling the custom op: