Skip to content

Commit 86ee63c

Browse files
sstamenkankitm3k
authored andcommitted
Fix input shape related compile logs for MIGraphX EP to be semantically correct (microsoft#22624)
As the title suggests, recompilation is done if a mismatch is detected. Changed the logs to reflect that behavior.
1 parent 2ea4266 commit 86ee63c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
11521152

11531153
if (!no_input_shape) {
11541154
if (!load_precompiled_model(prog, load_compiled_model_, std::string{load_compiled_path_})) {
1155-
LOGS_DEFAULT(INFO) << "No Input shapes detected quantizing model";
1155+
LOGS_DEFAULT(INFO) << "No input shapes detected quantizing model";
11561156
prog = migraphx::parse_onnx_buffer(onnx_string_buffer, options);
11571157

11581158
// Read in the calibration data and map it to an migraphx paramater map for the calibration ops
@@ -1293,7 +1293,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
12931293
// re-compile the program
12941294
if (!input_shape_match) {
12951295
if (!load_precompiled_model(prog, load_compiled_model_, std::string{load_compiled_path_})) {
1296-
LOGS_DEFAULT(VERBOSE) << "No Input shapes mismatch detected. Recompiling" << std::endl;
1296+
LOGS_DEFAULT(VERBOSE) << "Input shape mismatch detected. Recompiling" << std::endl;
12971297
#ifndef ENABLE_TRAINING_CORE
12981298
#if HIP_VERSION_MAJOR > 6 || (HIP_VERSION_MAJOR == 6 && HIP_VERSION_MINOR >= 2)
12991299
cmp_options.set_external_data_path(model_path_.has_parent_path() ? model_path_.parent_path().string() : std::filesystem::current_path().string());

0 commit comments

Comments
 (0)