diff --git a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc index 8bfa66710e2fc..39a1d5c35370d 100644 --- a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc +++ b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc @@ -1145,7 +1145,9 @@ Status MIGraphXExecutionProvider::Compile(const std::vector& // perform static quantization on the programs migraphx::quantize_int8(prog, t_, quant_opts); } - prog.compile(t_); + migraphx::compile_options co; + co.set_fast_math(false); + prog.compile(t_, co); auto prog_output_shapes = prog.get_output_shapes(); for (std::size_t i = 0; i < output_names.size(); ++i) { auto out_len = prog_output_shapes[i].lengths(); @@ -1263,7 +1265,9 @@ Status MIGraphXExecutionProvider::Compile(const std::vector& migraphx::quantize_int8(prog, t, quant_opts); } - prog.compile(t); + migraphx::compile_options co; + co.set_fast_math(false); + prog.compile(t, co); mgx_state->prog = prog; param_shapes = prog.get_parameter_shapes(); no_input_shape = false;