From 0acc47264f9aa36e9beae8e8c12a4649e3c7771a Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 6 Jan 2021 10:48:35 -0500 Subject: [PATCH] Update AddingExecutionProvider.md Slight updates to guide folks trying to add a new execution provider for the first time --- docs/AddingExecutionProvider.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/AddingExecutionProvider.md b/docs/AddingExecutionProvider.md index 3cadc45f909a7..a44354b6c7311 100644 --- a/docs/AddingExecutionProvider.md +++ b/docs/AddingExecutionProvider.md @@ -35,3 +35,17 @@ e.g. OrtReleaseObject(factory); OrtCreateSession(env, model_path, session_option, &session); ``` + +# Testing your execution provider + +To ease the testing of your execution provider, you can add a new case for it to the `onnx_test_runner` command, +do this by adding it to `onnxruntime/test/onnx/main.cc` file, following the pattern for other existing providers. + +Once you have this in place, you can run the `onnx_test_runner`, like this: + +``` +$ cd build/PLATFORM/CONFIGURATION +$ ./onnx_test_runner -e YOUR_BACKEND ./testdata/ort_minimal_e2e_test_data/ +$ ./onnx_test_runner -e YOUR_BACKEND ./testdata/gemm_activation_fusion/ +``` +