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:
mindest 2022-12-03 18:50:47 +08:00 committed by GitHub
parent 335b62bde6
commit f34ebbc8ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."