fix buid break (#11492)

Co-authored-by: Cheng Tang <chenta@microsoft.com@orttrainingdev9.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
This commit is contained in:
Tang, Cheng 2022-05-19 16:10:45 -07:00 committed by GitHub
parent 436c4f9b79
commit abecb56832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1007,14 +1007,14 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
model_proto->SerializeToString(onnx_string_buffer);
if (dump_model_ops_) {
std::string onnx_name = fused_node->Name() + ".onnx";
std::string onnx_name = fused_node.Name() + ".onnx";
std::ofstream ofs(onnx_name);
ofs.write(onnx_string_buffer.data(), onnx_string_buffer.size());
ofs.close();
}
std::vector<std::string> input_names, output_names;
no_input_shape = no_input_shape or get_input_output_names(*graph_body_viewer, input_names, output_names);
no_input_shape = no_input_shape or get_input_output_names(graph_body_viewer, input_names, output_names);
// by parsing the model_proto, create a program corresponding to
// the input fused_node
@ -1208,4 +1208,4 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
return Status::OK();
}
} // namespace onnxruntime
} // namespace onnxruntime