@@ -991,7 +991,7 @@ MIGraphXExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_v
991
991
model_proto->set_ir_version (ONNX_NAMESPACE::Version::IR_VERSION);
992
992
std::string onnx_string_buffer;
993
993
model_proto->SerializeToString (onnx_string_buffer);
994
- model_path_ = ToUTF8String ( graph_viewer.ModelPath (). ToPathString () );
994
+ model_path_ = graph_viewer.ModelPath ();
995
995
996
996
// dump onnx file if environment var is set
997
997
if (dump_model_ops_) {
@@ -1170,7 +1170,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
1170
1170
auto param_shapes = prog.get_parameter_shapes ();
1171
1171
1172
1172
// Add all calibration data read in from int8 table
1173
- for (auto & [cal_key, cal_val] : dynamic_range_map ) {
1173
+ for (auto & [cal_key, cal_val] : dynamic_range_map_ ) {
1174
1174
auto cal_val_shape = migraphx::shape (migraphx_shape_float_type);
1175
1175
quant_params.add (cal_key.c_str (), migraphx::argument (cal_val_shape, static_cast <void *>(std::move (&cal_val))));
1176
1176
}
@@ -1219,7 +1219,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
1219
1219
*p = {context->allocate_func , context->release_func , context->allocator_handle , map_progs_[context->node_name ],
1220
1220
map_onnx_string_[context->node_name ], options, t_, map_input_index_[context->node_name ], &mgx_mu_,
1221
1221
map_no_input_shape_[context->node_name ], fp16_enable_, int8_enable_,
1222
- int8_calibration_cache_available_, dynamic_range_map ,
1222
+ int8_calibration_cache_available_, dynamic_range_map_ ,
1223
1223
save_compiled_model_, save_compiled_path_,
1224
1224
load_compiled_model_, load_compiled_path_, dump_model_ops_};
1225
1225
*state = p.release ();
0 commit comments