Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/AddingExecutionProvider.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The onnxruntime_perf_test can be updated as well, to help measure the perf of new EP
onnxruntime/test/perftest/command_args_parser.cc


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/
```