onnxruntime
76e1a069 - Fix ordering of value info in GraphProto creation (#20691)

Commit
1 year ago
Fix ordering of value info in GraphProto creation (#20691) ### Description Graph member value_info_ (unordered_set) is ordered before its values are added to the graph proto. ### Motivation and Context - Without this ordering, the model proto used by the OpenVINO EP is not deterministic and varies across runs. - Since the model proto varies, it affects caching attempts by OpenVINO. Q: If creating a vector to have ordered elements is costly, should we make value_info_ a std::set that is sorted according to NodeArg names? Related PR about ordering initializers: https://github.com/microsoft/onnxruntime/pull/14631
Author
Parents
Loading