diff --git a/includes/onnxruntime_customop.hpp b/includes/onnxruntime_customop.hpp index 89e6cf2f..bc75c533 100644 --- a/includes/onnxruntime_customop.hpp +++ b/includes/onnxruntime_customop.hpp @@ -99,7 +99,7 @@ struct CustomOpApi { template struct CustomOpBase : OrtCustomOp { CustomOpBase() { - OrtCustomOp::version = ORT_API_VERSION; + OrtCustomOp::version = 10; // The minimum ORT version supported OrtCustomOp::CreateKernel = [](const OrtCustomOp* this_, const OrtApi* api, const OrtKernelInfo* info) { return static_cast(this_)->CreateKernel(*api, info); }; OrtCustomOp::GetName = [](const OrtCustomOp* this_) { return static_cast(this_)->GetName(); };