diff --git a/onnxruntime/python/tools/transformers/benchmark.py b/onnxruntime/python/tools/transformers/benchmark.py index dc0bb55212e28..4800c48744236 100644 --- a/onnxruntime/python/tools/transformers/benchmark.py +++ b/onnxruntime/python/tools/transformers/benchmark.py @@ -135,15 +135,6 @@ def run_onnxruntime( ) return results - if provider == "migraphx": - optimizer_info = OptimizerInfo.NOOPT - warm_up_repeat = 5 - if "MIGraphXExecutionProvider" not in onnxruntime.get_available_providers(): - logger.error( - "Please install onnxruntime-rocm package, and use a machine with GPU for testing gpu performance." - ) - return results - if optimizer_info == OptimizerInfo.NOOPT: logger.warning( f"OptimizerInfo is set to {optimizer_info}, graph optimizations specified in FusionOptions are not applied."