From 3c0f071eac35d05a7609a792a3817207f07b9f50 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 4b7c0eccc4354..11b6438bc7479 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -878,7 +878,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") { @@ -888,7 +888,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") { @@ -898,7 +898,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") { @@ -907,7 +907,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") { @@ -917,7 +917,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") { @@ -927,7 +927,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") { @@ -936,7 +936,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") { @@ -946,7 +946,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") { @@ -955,7 +955,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") {