diff --git a/onnxruntime/core/providers/vitisai/include/vaip/custom_op.h b/onnxruntime/core/providers/vitisai/include/vaip/custom_op.h index 09f3782b5642f..64cf52ec0a404 100644 --- a/onnxruntime/core/providers/vitisai/include/vaip/custom_op.h +++ b/onnxruntime/core/providers/vitisai/include/vaip/custom_op.h @@ -45,7 +45,7 @@ class CustomOp { VAIP_DLL_SPEC virtual ~CustomOp(); public: - virtual void Compute_base(const OrtApi* api, OrtKernelContext* context) const = 0; + virtual void Compute(const OrtApi* api, OrtKernelContext* context) const = 0; }; } // namespace vaip_core diff --git a/onnxruntime/core/providers/vitisai/vitisai_execution_provider.cc b/onnxruntime/core/providers/vitisai/vitisai_execution_provider.cc index 2fc1bd37eb2f6..d882314c9e39d 100644 --- a/onnxruntime/core/providers/vitisai/vitisai_execution_provider.cc +++ b/onnxruntime/core/providers/vitisai/vitisai_execution_provider.cc @@ -99,7 +99,7 @@ common::Status VitisAIExecutionProvider::Compile(const std::vector(state)->Compute_base(api, context); + reinterpret_cast(state)->Compute(api, context); return Status::OK(); }; node_compute_funcs.push_back(compute_info);