Skip to content

Commit

Permalink
Add rocm to transformers/benchmark.py script (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Sokolovic <[email protected]>
  • Loading branch information
stsokolo and Stefan Sokolovic authored Oct 2, 2024
1 parent 9c64ac0 commit 8495918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/python/tools/transformers/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,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

Expand Down

0 comments on commit 8495918

Please sign in to comment.