Skip to content

Commit 27e231d

Browse files
Fix snippet
1 parent c5644ad commit 27e231d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/execution-providers/EP-Context-Design.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,6 @@ output_models = [
667667
# Set the EP to use for compilation
668668
ep_devices = ort.get_ep_devices()
669669
selected_ep_device = next((ep_device for ep_device in ep_devices if ep_device.ep_name == contoso_ep.get_ep_names()[0]), None)
670-
assert selected_ep_device.device.metadata["is_virtual"] == "1"
671670

672671
ep_options = {} # EP-specific options
673672
session_options = ort.SessionOptions()
@@ -692,4 +691,9 @@ for i in range(len(input_models)):
692691
# Unregister the library using the same registration name specified earlier.
693692
# Must only unregister a library after all `ModelCompiler` objects that use the library have been released.
694693
ort.unregister_execution_provider_library(ep_lib_registration_name)
695-
```
694+
```
695+
696+
#### References
697+
- [Plugin EP library documentation](./plugin-ep-libraries.md)
698+
- [Additional Python usage examples in unit tests](https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/test/python/onnxruntime_test_python_compile_api.py)
699+
- [Python ModelCompiler class](https://github.com/microsoft/onnxruntime/blob/a5ba2ba3998820dd8da111c90c420479aac7a11e/onnxruntime/python/onnxruntime_inference_collection.py#L680-L709)

0 commit comments

Comments
 (0)