You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 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.
0 commit comments