This folder contains a set of C++ header files. They are used specifically for allowing ONNX Runtime internal kernel-based EPs to use the plugin-style EP API while keep minimal changes to existing code.
There are 2 types of header files:
include/onnxruntime/ep/ (#26919)onnxruntime/test/autoep/library/plugin_ep_utils.hinclude/onnxruntime/core/providers/utils/ (#25753)Header files specifically used for supporting WebGPU EP and CUDA EP to use EP APIs. These header files do not only depend on ONNX Runtime public API, but also depend on ONNX Runtime internal headers. They define adapter classes that replace their compatible, internal ONNX Runtime equivalents.
include/onnxruntime/ep/adapter/Make sure to include "ep/adapters.h" to include all adapter implementation code. This file brings the adapter classes into the EP's namespace, so it should be included before other EP code that relies on the adapter classes. Using "ep/adapters.h" as a pre-compiled header is the recommended way to include it first.
ep/adapters.h has conflicts with shared provider. Shared provider should be disabled when using these adapters.