From 634ec89d3b13a226e84d1b5370ef914db5282fa9 Mon Sep 17 00:00:00 2001 From: Ted Themistokleous Date: Wed, 29 Jan 2025 18:54:46 +0000 Subject: [PATCH] Update naming for migraphx session ops in pybind state --- onnxruntime/python/onnxruntime_pybind_state.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 884ae86c71930..7cc85dc766b30 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -854,7 +854,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_fp16_enable = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'trt_fp16_enable' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_fp16_enable' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_fp8_enable") { @@ -864,7 +864,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_fp8_enable = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_fp8_enable' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_fp8_enable' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_int8_enable") { @@ -874,7 +874,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_int8_enable = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_int8_enable' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_int8_enable' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_int8_calibration_table_name") { @@ -883,7 +883,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_int8_calibration_table_name = calibration_table.c_str(); } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_int8_calibration_table_name' should be a " + "[ERROR] [MIGraphX] The value for the key 'migraphx_int8_calibration_table_name' should be a " "file name i.e. 'cal_table'.\n"); } } else if (option.first == "migraphx_use_native_calibration_table") { @@ -893,7 +893,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_use_native_calibration_table = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_int8_use_native_calibration_table' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_use_native_calibration_table' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_save_compiled_model") { @@ -903,7 +903,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_fp16_enable = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_save_compiled_model' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_save_compiled_model' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_save_model_path") { @@ -912,7 +912,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_save_model_path = save_model_path.c_str(); } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_save_model_name' should be a " + "[ERROR] [MIGraphX] The value for the key 'migraphx_save_model_name' should be a " "file name i.e. 'compiled_model.mxr'.\n"); } } else if (option.first == "migraphx_load_compiled_model") { @@ -922,7 +922,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_fp16_enable = false; } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_load_compiled_model' should be" + "[ERROR] [MIGraphX] The value for the key 'migraphx_load_compiled_model' should be" " 'True' or 'False'. Default value is 'False'.\n"); } } else if (option.first == "migraphx_load_model_path") { @@ -931,7 +931,7 @@ std::unique_ptr CreateExecutionProviderInstance( params.migraphx_load_model_path = load_model_path.c_str(); } else { ORT_THROW( - "[ERROR] [MIGraphX] The value for the key 'migx_load_model_name' should be a " + "[ERROR] [MIGraphX] The value for the key 'migraphx_load_model_name' should be a " "file name i.e. 'compiled_model.mxr'.\n"); } } else if (option.first == "migraphx_exhaustive_tune") {