onnxruntime
e0a4ed1b - Use model hash from metadata if available (#25118)

Commit
253 days ago
Use model hash from metadata if available (#25118) ### Description This change implements **Metadata-based hash override** optimization to the model hashing logic. Added logic to check for "model_hash" in model metadata before computing hashes. If present, both model_graph_hash and model_weight_hash are set to the metadata value, bypassing computation entirely. ### Motivation and Context ONNX models generated using the Olive toolchain now have the option to include the model hash as part of the ONNX metadata. For such models, it would be beneficial to use the provided hash instead of computing it from scratch.
Author
Parents
Loading