Skip to content

Commit

Permalink
Address macro invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Dec 10, 2024
1 parent fab27a7 commit 110c53b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions onnxruntime/core/graph/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4209,11 +4209,12 @@ Status Graph::ToGraphProtoWithExternalInitiallizersImpl(
}

if (!blob_keys_to_external_data.empty()) {
ORT_RETURN_IF_NOT(!!ExternalDataInfo::WritePrepackedToFileAndAddToProto(
auto& os = ExternalDataInfo::WritePrepackedToFileAndAddToProto(
*model_saving_options.prepacked_for_save, blob_keys_to_external_data,
model_saving_options.align_offset,
model_saving_options.allocation_granularity,
external_stream, external_offset, *output_proto));
external_stream, external_offset, *output_proto);
ORT_RETURN_IF_NOT(os.good(), "Failed to write pre-packed blobs to external file");
}

processed_weights.insert(initializer.name());
Expand Down

0 comments on commit 110c53b

Please sign in to comment.