mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
[MIGraphX EP Support]Add rocm to transformers/benchmark.py script (#22299)
### Description Add ROCm EP option to benchmark.py script when using int8 quantization. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Without this change benchmarks with int8 quantization cannot be run with ROCm execution provider.
This commit is contained in:
parent
407c1ab2e2
commit
efb8703a25
1 changed files with 1 additions and 1 deletions
|
|
@ -787,7 +787,7 @@ def main():
|
|||
logger.error("fp16 is for GPU only")
|
||||
return
|
||||
|
||||
if args.precision == Precision.INT8 and args.use_gpu and args.provider != "migraphx":
|
||||
if args.precision == Precision.INT8 and args.use_gpu and args.provider not in ["migraphx", "rocm"]:
|
||||
logger.error("int8 is for CPU only")
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue