From 2a0b7bc08b9871c7c6563ea405116039ddfde8f8 Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Fri, 19 Apr 2024 12:42:42 +0800 Subject: [PATCH] vsort/vs_onnxruntime.cpp: remove gridsample hack for cuda ep https://github.com/microsoft/onnxruntime/pull/19562 --- vsort/vs_onnxruntime.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vsort/vs_onnxruntime.cpp b/vsort/vs_onnxruntime.cpp index e9bdd9b..93dc012 100644 --- a/vsort/vs_onnxruntime.cpp +++ b/vsort/vs_onnxruntime.cpp @@ -73,6 +73,7 @@ static std::mutex capture_lock; // rename GridSample to com.microsoft::GridSample // onnxruntime has support for CUDA-accelerated GridSample only in its own opset domain static void rename(ONNX_NAMESPACE::ModelProto & model) { +#if ORT_API_VERSION < 18 constexpr auto ms_domain = "com.microsoft"; bool has_ms_opset = false; @@ -95,6 +96,7 @@ static void rename(ONNX_NAMESPACE::ModelProto & model) { *node.mutable_domain() = ms_domain; } } +#endif // ORT_API_VERSION < 18 }