mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
fix a wrong assert condition in benchmark_helper (#13821)
### Description fix a wrong assert condition in benchmark_helper.py (introduced in #13455)
This commit is contained in:
parent
335b62bde6
commit
f34ebbc8ff
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ def prepare_environment(cache_dir, output_dir, use_gpu, provider=None):
|
|||
), "Please install onnxruntime-directml package to test GPU inference."
|
||||
|
||||
else:
|
||||
assert set(onnxruntime.get_available_providers()).isdisjoint(
|
||||
assert not set(onnxruntime.get_available_providers()).isdisjoint(
|
||||
["CUDAExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider"]
|
||||
), "Please install onnxruntime-gpu package, or install ROCm support, to test GPU inference."
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue