Skip to content

Commit

Permalink
Update naming for migraphx session ops in pybind state
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Themistokleous committed Jan 29, 2025
1 parent 2117821 commit 634ec89
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions onnxruntime/python/onnxruntime_pybind_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -864,7 +864,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -874,7 +874,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -883,7 +883,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -893,7 +893,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -903,7 +903,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -912,7 +912,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -922,7 +922,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand All @@ -931,7 +931,7 @@ std::unique_ptr<IExecutionProvider> 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") {
Expand Down

0 comments on commit 634ec89

Please sign in to comment.