Skip to content

Commit

Permalink
Fix fmt failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-garcia committed Mar 4, 2023
1 parent 34adf49 commit 7c87c98
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/saved_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,12 @@ impl SavedModelSaver {
) -> std::result::Result<(), SaveModelError> {
let mut meta_graph = self.meta_graph.clone();
let graph_bytes = graph.graph_def()?;
let graph_def= protobuf::Message::parse_from_bytes(&graph_bytes)
.map_err(|e| <Status as Into<SaveModelError>>::into(Status::new_set_lossy(
let graph_def = protobuf::Message::parse_from_bytes(&graph_bytes).map_err(|e| {
<Status as Into<SaveModelError>>::into(Status::new_set_lossy(
Code::InvalidArgument,
&format!("Unable to parse graph definition: {}", e),
)))?;
))
})?;
meta_graph.set_graph_def(graph_def);
let mut saved_model = protos::saved_model::SavedModel::new();
saved_model.set_saved_model_schema_version(1);
Expand Down

0 comments on commit 7c87c98

Please sign in to comment.